Test with EO instead of -c

This commit is contained in:
flow.gunso
2019-04-09 17:55:52 +02:00
parent 4209691533
commit 0fd2b8324d

View File

@@ -44,10 +44,11 @@ chown $UID.$GID -R /home/seafuser/infinite-seaf-cli-start.sh
chown $UID.$GID -R /home/seafuser/entrypoint.sh
# Run the Seafile client as the container user.
su - $UNAME -c ' \
export SEAF_SERVER_URL=$SEAF_SERVER_URL ;\
export SEAF_USERNAME=$SEAF_USERNAME ;\
export SEAF_PASSWORD=$SEAF_PASSWORD ;\
export SEAF_LIBRARY_UUID=$SEAF_LIBRARY_UUID ;\
export UNAME=$UNAME ;\
/bin/bash /home/seafuser/entrypoint.sh'
su - $UNAME << EO
export SEAF_SERVER_URL=$SEAF_SERVER_URL
export SEAF_USERNAME=$SEAF_USERNAME
export SEAF_PASSWORD=$SEAF_PASSWORD
export SEAF_LIBRARY_UUID=$SEAF_LIBRARY_UUID
export UNAME=$UNAME
/bin/bash /home/seafuser/entrypoint.sh
EO