File tree Expand file tree Collapse file tree 4 files changed +10
-16
lines changed
root/etc/systemd/system/supervisor.service.d Expand file tree Collapse file tree 4 files changed +10
-16
lines changed Original file line number Diff line number Diff line change 55set -e
66
77if [ -d ~ abc/.ssh ]; then
8- chown -R abc: ~ abc/.ssh
9- fi
10-
11- if [ -d " /var/log/workers" ]; then
12- chown -R abc: /var/log/workers
13- fi
14-
15- if [ -d " /etc/supervisor/conf.d" ]; then
16- rm -rf /etc/supervisor/conf.d
8+ chown -R abc: ~ abc
179fi
1810
1911if [ -x " /bin/systemctl" ]; then
Original file line number Diff line number Diff line change @@ -10,10 +10,8 @@ if [ -L /config/server.json ]; then
1010 rm -f /config/server.json
1111fi
1212
13- # Put this back.
14- if [ -d /etc/supervisor ]; then
15- rm -f /etc/supervisor/conf.d
16- mkdir /etc/supervisor/conf.d
13+ if [ -L /config/log ]; then
14+ rm -f /config/log
1715fi
1816
1917if [ -x " /bin/systemctl" ]; then
Original file line number Diff line number Diff line change @@ -52,8 +52,6 @@ read -r -d '' PACKAGE_ARGS <<- PACKAGE_ARGS
5252 --vendor='${VENDOR} '
5353PACKAGE_ARGS
5454
55- mkdir -p root/var/log/workers
56-
5755rm -f ${PACKAGE_NAME} _${VERSION} -${ITERATION} _amd64.deb
5856echo fpm -s dir -t deb ${PACKAGE_ARGS} ${DEPENDS} -a amd64 -v ${VERSION} -C root/
5957eval fpm -s dir -t deb ${PACKAGE_ARGS} ${DEPENDS} -a amd64 -v ${VERSION} -C root/
Original file line number Diff line number Diff line change 22# Those files live in a folder with this server's name, so create a dynamic symlink to reach them at a known path.
33[Service]
44ExecStartPre=/bin/bash -c 'ln -sf "/share/websites/confs/server.$(hostname -s)" "/config/server.json"'
5- ExecStartPre=/bin/bash -c 'ln -Tsf "/share/workers/$(hostname -s)/supervisor/" "/etc/supervisor/conf.d"'
65ExecStartPre=/bin/bash -c 'ln -Tsf "/share/logs/notifiarr/supervisor/$(hostname -s)" "/config/log"'
6+ ExecStartPre=/usr/bin/php /share/websites/www/notifiarr.com/supervisor/confBuilder.php
7+ ExecStartPre=/bin/bash -c 'chown -R abc: "/share/workers/$(hostname -s)/supervisor"'
8+ ExecStart=
9+ ExecStart=/usr/bin/supervisord -n -c /config/supervisor/supervisord.conf
10+ ExecReload=/
11+ ExecReload=/usr/bin/supervisorctl -c /config/supervisor/supervisord.conf $OPTIONS reload
12+
You can’t perform that action at this time.
0 commit comments