Pass command switches correctly.

This commit is contained in:
chbmb 2020-06-03 18:19:58 +01:00
parent 4898350304
commit 0d9395c2f9

View File

@ -2,7 +2,7 @@
## Set alias for occ and make executable
[[ ! -f /usr/bin/occ ]] && \
echo -e '#!/bin/bash\nsudo -u abc -s /bin/bash -c "php7 /config/www/nextcloud/occ $@"' > /usr/bin/occ
echo -e '#!/bin/bash\nsudo -u abc -s /bin/bash -c "php7 /config/www/nextcloud/occ $*"' > /usr/bin/occ
[[ ! -x /usr/bin/occ ]] && \
chmod +x /usr/bin/occ