From 020a30d93a101127fdd2f494026fc80c632ae728 Mon Sep 17 00:00:00 2001 From: Max Rees Date: Mon, 19 Nov 2018 19:15:15 -0500 Subject: user/nextcloud: new package --- user/nextcloud/occ | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 user/nextcloud/occ (limited to 'user/nextcloud/occ') diff --git a/user/nextcloud/occ b/user/nextcloud/occ new file mode 100644 index 000000000..1e3c095ad --- /dev/null +++ b/user/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 -- cgit v1.2.3-70-g09d2