Remove the invalid H option with su

This commit is contained in:
flow.gunso
2019-04-09 12:48:55 +02:00
parent db08e076c6
commit 502d2d13a6

View File

@@ -39,15 +39,15 @@ chown $UID.$GID /entrypoint.sh
chown $UID.$GID /infinite-seaf-cli-start.sh chown $UID.$GID /infinite-seaf-cli-start.sh
# Safely initialize Seafile. # Safely initialize Seafile.
su - $UNAME -H -c /usr/bin/seaf-cli init -d /.seafile su - $UNAME -c /usr/bin/seaf-cli init -d /.seafile
while [ ! -f $seafile_ini ]; do sleep 1; done while [ ! -f $seafile_ini ]; do sleep 1; done
# Safely start the Seafile daemon. # Safely start the Seafile daemon.
su - $UNAME -H -c /usr/bin/seaf-cli start su - $UNAME -c /usr/bin/seaf-cli start
while [ ! -S $seafile_sock ]; do sleep 1; done while [ ! -S $seafile_sock ]; do sleep 1; done
# Start the synchronisation. # Start the synchronisation.
su - $UNAME -H -c /usr/bin/seaf-cli sync -u $SEAF_USERNAME -p $SEAF_PASSWORD -s $SEAF_SERVER_URL -l $SEAF_LIBRARY_UUID -d /volume su - $UNAME -c /usr/bin/seaf-cli sync -u $SEAF_USERNAME -p $SEAF_PASSWORD -s $SEAF_SERVER_URL -l $SEAF_LIBRARY_UUID -d /volume
# Start the supervisord. # Start the supervisord.
su - $UNAME -H -c /usr/bin/supervisord -u $UNAME -c $supervisord_conf -j $supervisord_pid -l $supervisord_log su - $UNAME -c /usr/bin/supervisord -u $UNAME -c $supervisord_conf -j $supervisord_pid -l $supervisord_log