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