diff --git a/assets/change-ownership.sh b/assets/change-ownership.sh index 5d3e590..9b7c77d 100644 --- a/assets/change-ownership.sh +++ b/assets/change-ownership.sh @@ -1,13 +1,9 @@ #!/bin/bash -if [ -z $UID ] && [ -z $GID ]; then - groupadd -g $GID -o $UNAME ;\ - useradd -m -u $UID -g $GID -o -s /bin/bash $UNAME ;\ - chown $UID.$GID -R /.seafile ;\ - chown $UID.$GID -R /.supervisord ;\ - chown $UID.$GID -R /volume ;\ - chown $UID.$GID /entrypoint.sh ;\ - chown $UID.$GID /infinite-seaf-cli-start.sh -else - echo "\$UID and \$GID environment variables are required to update files ownership." -fi \ No newline at end of file +groupadd -g $GID -o $UNAME ;\ +useradd -m -u $UID -g $GID -o -s /bin/bash $UNAME ;\ +chown $UID.$GID -R /.seafile ;\ +chown $UID.$GID -R /.supervisord ;\ +chown $UID.$GID -R /volume ;\ +chown $UID.$GID /entrypoint.sh ;\ +chown $UID.$GID /infinite-seaf-cli-start.sh