Compare commits
No commits in common. "6d582f12a541e41de1ae38cc727b034d574c5307" and "1dcd8d2372b59b57ed05290b823df4145e1168a7" have entirely different histories.
6d582f12a5
...
1dcd8d2372
|
@ -1,5 +0,0 @@
|
|||
Make this file executable and save it as /usr/bin/occ
|
||||
|
||||
Now whenever you want to use the CLI tool occ, you can do it from anywhere.
|
||||
|
||||
Don't forget to set the two variables nextcloudpath and wwwuser
|
|
@ -1,14 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
## Make this file executable and save it as /usr/bin/occ
|
||||
## Now whenever you want to use the CLI tool occ, you can
|
||||
## do it from anywhere.
|
||||
|
||||
nextcloudpath="/var/www/html"
|
||||
wwwuser="www-data"
|
||||
|
||||
|
||||
sudo -u $wwwuser php "$nextcloudpath/occ" $@
|
||||
errorcode=$?
|
||||
exit $errorcode
|
||||
|
Loading…
Reference in New Issue