We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4691c70 commit f2cd3d8Copy full SHA for f2cd3d8
root/etc/run_once/config_rslsync
@@ -30,8 +30,6 @@ else
30
addgroup -g $RUNAS_GID -S $RUNAS_GROUP
31
adduser -u $RUNAS_UID -D -S -G $RUNAS_GROUP $RUNAS_USER
32
33
- sed -i'' "s/root/$RUNAS_USER/" /etc/sv/rslsync/run
34
-
35
chown -R $RUNAS_USER /etc/rslsync
36
if [ -z $LOG_TO_STDOUT ]; then
37
touch /var/log/rslsync.log
root/etc/sv/rslsync/run
@@ -1,7 +1,8 @@
1
#!/bin/sh
2
exec 2>&1
3
+source /etc/envvars
4
LOG_LOCATION=""
5
if [ -z $LOG_TO_STDOUT ]
6
LOG_LOCATION=" --log /var/log/rslsync.log "
7
fi
-su -c "/usr/local/bin/rslsync --config /etc/rslsync/rslsync.conf $LOG_LOCATION --nodaemon" -s /bin/sh root
8
+su -c "/usr/local/bin/rslsync --config /etc/rslsync/rslsync.conf $LOG_LOCATION --nodaemon" -s /bin/sh $RUNAS_USER
0 commit comments