10000 Added permission command to docker.sh · Klizzy/symfony-docker@73dcadc · GitHub
[go: up one dir, main page]

Skip to content

Commit 73dcadc

Browse files
committed
Added permission command to docker.sh
1 parent 1d61bcd commit 73dcadc

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

docker.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ function command_help() {
3838
awk 'BEGIN{FS="^[ ]+|\\) |## "} /^.*?[^*]+\) command_[a-zA-Z_\-]+ ;;/ {printf " \033[32m%-30s\033[0m %s\n", $2, $4}' $0
3939
}
4040

41+
function command_permission(){
42+
docker exec -i klizzy_php chown www-data:www-data -R /var/www/
43+
}
44+
4145
function command_setup(){
4246
command_start
4347
docker exec -w "/var/www/" klizzy_php composer self-update --2
@@ -53,5 +57,6 @@ case ${CMD1} in
5357
start) command_start ;; ## starts docker setup
5458
stop) command_stop ;; ## stops docker setup
5559
setup) command_setup ;; ## project setup
60+
permission) command_permission ;; ## sets the correct file permissions in the container
5661
*) command_help ;; ## Shows this help.
5762
esac

0 commit comments

Comments
 (0)
0