Skip to content
Snippets Groups Projects
Verified Commit 11617681 authored by David Beniamine's avatar David Beniamine
Browse files

Add perms command

parent 41241f8f
Branches
No related tags found
No related merge requests found
......@@ -33,6 +33,8 @@ usage() {
echo -e "\tpopulate LabNbook database (Docker only)"
echo "mysql_restore"
echo -e "\trestores database from a dump"
echo "perms"
echo -e "\tsets default files permissions"
echo "restart"
echo -e "\t restart the docker stack or apache2"
echo "shell"
......@@ -109,6 +111,12 @@ case $action in
echo "Please answer yes or no.";;
esac
;;
"perms")
$cmd chown -R $(id -u):33 dolibarr/
$cmd chmod -R g+w dolibarr/documents
$cmd chmod -R g-w dolibarr/htdocs
$cmd touch dolibarr/documents/install.lock
;;
"restart")
$cmdrestart $@
;;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment