diff options
author | nachoparker <nacho@ownyourbits.com> | 2018-06-06 18:11:25 +0300 |
---|---|---|
committer | nachoparker <nacho@ownyourbits.com> | 2018-06-06 18:11:47 +0300 |
commit | b78c9e2369df3a716101c5ae6ed0cc9d8018f3a4 (patch) | |
tree | a139b2fcd08ede45c721d0e745320fb318106bbb /update.sh | |
parent | 412eee2f980e7ada84208df5de68f203e68eb4f9 (diff) |
add ncc command, shortcut of occv0.56.19
Diffstat (limited to 'update.sh')
-rwxr-xr-x | update.sh | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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 |