+1
src/README.md.sh
+1
src/README.md.sh
+3
-2
src/knotserver-git/README.md.sh
+3
-2
src/knotserver-git/README.md.sh
···
1
#!/usr/bin/bash
2
cat << EOF > ${pkgbuild_path}/README.md
3
# knotserver-git
4
···
10
## SSH
11
12
SSH access is required to push to repositories. To enable, use the sshd_config.d drop-in, and give the
13
-
\`${knotserver_user:-git}\` user a shell and a home directory:
14
15
\`\`\`bash
16
ln -s /usr/lib/systemd/sshd_config.d/knotserver.conf /etc/ssh/sshd_config.d/30-knotserver.conf
17
-
usermod -s /usr/bin/bash -d ${knotserver_repo_path} ${knotserver_user:-git}
18
\`\`\`
19
20
EOF
···
1
#!/usr/bin/bash
2
+
set -eu
3
cat << EOF > ${pkgbuild_path}/README.md
4
# knotserver-git
5
···
11
## SSH
12
13
SSH access is required to push to repositories. To enable, use the sshd_config.d drop-in, and give the
14
+
\`${knotserver_user}\` user a shell and a home directory:
15
16
\`\`\`bash
17
ln -s /usr/lib/systemd/sshd_config.d/knotserver.conf /etc/ssh/sshd_config.d/30-knotserver.conf
18
+
usermod -s /usr/bin/bash -d ${knotserver_repo_path} ${knotserver_user}
19
\`\`\`
20
21
EOF
+1
src/knotserver/PKGBUILD.sh
+1
src/knotserver/PKGBUILD.sh
+3
-2
src/knotserver/README.md.sh
+3
-2
src/knotserver/README.md.sh
···
1
#!/usr/bin/bash
2
cat << EOF > ${pkgbuild_path}/README.md
3
# knotserver
4
···
10
## SSH
11
12
SSH access is required to push to repositories. To enable, use the sshd_config.d drop-in, and give the
13
-
\`${knotserver_user:-git}\` user a shell and a home directory:
14
15
\`\`\`bash
16
ln -s /usr/lib/systemd/sshd_config.d/knotserver.conf /etc/ssh/sshd_config.d/30-knotserver.conf
17
-
usermod -s /usr/bin/bash -d ${knotserver_repo_path} ${knotserver_user:-git}
18
\`\`\`
19
20
EOF
···
1
#!/usr/bin/bash
2
+
set -eu
3
cat << EOF > ${pkgbuild_path}/README.md
4
# knotserver
5
···
11
## SSH
12
13
SSH access is required to push to repositories. To enable, use the sshd_config.d drop-in, and give the
14
+
\`${knotserver_user}\` user a shell and a home directory:
15
16
\`\`\`bash
17
ln -s /usr/lib/systemd/sshd_config.d/knotserver.conf /etc/ssh/sshd_config.d/30-knotserver.conf
18
+
usermod -s /usr/bin/bash -d ${knotserver_repo_path} ${knotserver_user}
19
\`\`\`
20
21
EOF
+1
src/spindle/PKGBUILD.sh
+1
src/spindle/PKGBUILD.sh
+5
-4
src/spindle/service.sh
+5
-4
src/spindle/service.sh
···
1
#!/usr/bin/bash
2
cat << EOF > ${pkgbuild_path}/spindle.service
3
[Unit]
4
Description=tangled spindle server
5
After=network.target network-online.target docker.service
6
Wants=network-online.target
7
-
AssertPathExists=${spindle_path:-/var/lib/spindle}
8
9
[Service]
10
Environment="SPINDLE_SERVER_HOSTNAME=%H"
11
Environment="SPINDLE_SERVER_LISTEN_ADDR=127.0.0.1:6555"
12
-
WorkingDirectory=${spindle_path:-/var/lib/spindle}
13
ExecStart=/usr/bin/spindle
14
Restart=always
15
-
User=${spindle_user:-root}
16
-
Group=${spindle_group:-root}
17
StandardOutput=journal
18
StandardError=journal
19
LimitNOFILE=65536
···
1
#!/usr/bin/bash
2
+
set -eu
3
cat << EOF > ${pkgbuild_path}/spindle.service
4
[Unit]
5
Description=tangled spindle server
6
After=network.target network-online.target docker.service
7
Wants=network-online.target
8
+
AssertPathExists=${spindle_path}
9
10
[Service]
11
Environment="SPINDLE_SERVER_HOSTNAME=%H"
12
Environment="SPINDLE_SERVER_LISTEN_ADDR=127.0.0.1:6555"
13
+
WorkingDirectory=${spindle_path}
14
ExecStart=/usr/bin/spindle
15
Restart=always
16
+
User=${spindle_user}
17
+
Group=${spindle_group}
18
StandardOutput=journal
19
StandardError=journal
20
LimitNOFILE=65536
+2
-1
src/spindle/tmpfiles.conf.sh
+2
-1
src/spindle/tmpfiles.conf.sh