diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2018-01-24 17:19:50 +0100 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2018-01-24 17:27:52 +0100 |
commit | e87d962796b55707bfdc312940e3233b2113a715 (patch) | |
tree | 2f386c0fb46ed66d1b47a5a33d1a49e47c43b490 /community/nextcloud/occ | |
parent | 58cb5ce6ea849eebf41045e47a5fe268baa33b42 (diff) | |
download | aports-e87d962796b55707bfdc312940e3233b2113a715.tar.bz2 aports-e87d962796b55707bfdc312940e3233b2113a715.tar.xz |
community/nextcloud: install occ wrapper script into /usr/bin
Diffstat (limited to 'community/nextcloud/occ')
-rw-r--r-- | community/nextcloud/occ | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/community/nextcloud/occ b/community/nextcloud/occ new file mode 100644 index 0000000000..1e3c095adc --- /dev/null +++ b/community/nextcloud/occ @@ -0,0 +1,10 @@ +#!/bin/sh + +NEXTCLOUD_DIR='/usr/share/webapps/nextcloud' +: ${NEXTCLOUD_USER:="nextcloud"} + +if [ "$(id -un)" != "$NEXTCLOUD_USER" ]; then + exec su -s /bin/sh "$NEXTCLOUD_USER" -c '$0 "$@"' -- $NEXTCLOUD_DIR/occ "$@" +else + exec $NEXTCLOUD_DIR/occ "$@" +fi |