Compare commits
3 Commits
1dcd8d2372
...
6d582f12a5
Author | SHA1 | Date |
---|---|---|
Ze'ev Schurmann | 6d582f12a5 | |
Ze'ev Schurmann | 6f9f5e7fef | |
Ze'ev Schurmann | 4e10704a2c |
|
@ -0,0 +1,5 @@
|
||||||
|
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
|
|
@ -0,0 +1,14 @@
|
||||||
|
#!/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