mirror of
https://github.com/nextcloud/nextcloudpi.git
synced 2026-01-09 14:42:01 -03:30
add ncc command, shortcut of occ
This commit is contained in:
parent
412eee2f98
commit
b78c9e2369
@ -1,5 +1,7 @@
|
||||
|
||||
[v0.56.18](https://github.com/nextcloud/nextcloudpi/commit/caaa4cd) (2018-06-06) NFS: fix dependency with automount
|
||||
[v0.56.19](https://github.com/nextcloud/nextcloudpi/commit/f08c238) (2018-06-06) add ncc command, shortcut of occ
|
||||
|
||||
[v0.56.18](https://github.com/nextcloud/nextcloudpi/commit/8914348) (2018-06-06) NFS: fix dependency with automount
|
||||
|
||||
[v0.56.17](https://github.com/nextcloud/nextcloudpi/commit/b4038ca) (2018-06-04) ncp-web: sanitize the ref parameter
|
||||
|
||||
|
||||
7
ncp.sh
7
ncp.sh
@ -36,6 +36,13 @@ install()
|
||||
sed -i '/1\\ \*) do_change_pass ;;/i0\\ *) ncp-config ;;' /usr/bin/raspi-config
|
||||
}
|
||||
|
||||
# add the ncc shortcut
|
||||
cat >> /usr/local/bin/ncc <<'EOF'
|
||||
#!/bin/bash
|
||||
sudo -u www-data php /var/www/nextcloud/occ "$@"
|
||||
EOF
|
||||
chmod +x /usr/local/bin/ncc
|
||||
|
||||
# NCP-WEB
|
||||
|
||||
## VIRTUAL HOST
|
||||
|
||||
@ -242,6 +242,13 @@ done
|
||||
rm -f /etc/systemd/system/rpcbind.service /etc/systemd/system/nfs-common.services
|
||||
sed -i 's|^ExecStartPre=.*|ExecStartPre=/bin/bash -c "/bin/sleep 30; /usr/sbin/exportfs -r"|' /lib/systemd/system/nfs-server.service
|
||||
|
||||
# add the ncc shortcut
|
||||
cat >> /usr/local/bin/ncc <<'EOF'
|
||||
#!/bin/bash
|
||||
sudo -u www-data php /var/www/nextcloud/occ "$@"
|
||||
EOF
|
||||
chmod +x /usr/local/bin/ncc
|
||||
|
||||
} # end - only live updates
|
||||
|
||||
exit 0
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user