Skip to content

Commit

Permalink
Fix installation to /var/www/html
Browse files Browse the repository at this point in the history
It did not work if that directory was owned by root (Debian default).

Signed-off-by: Stefan Weil <[email protected]>
  • Loading branch information
Stefan Weil committed Dec 16, 2020
1 parent e515122 commit 3e0f812
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions dev/apache.mk
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ APACHE_USER = www-data
APACHE_GROUP = www-data
APACHE_DIR = /var/www/html
APACHE_BASEURL = ocr-gt
SUDO_APACHE = sudo -u $(APACHE_USER)
SUDO = sudo

#
# Deploy on apache
#

deploy:
$(SUDO_APACHE) mkdir -p "$(APACHE_DIR)/$(APACHE_BASEURL)"
$(SUDO_APACHE) chown -R $(APACHE_USER):$(APACHE_GROUP) "$(APACHE_DIR)/$(APACHE_BASEURL)"
$(SUDO_APACHE) chmod -R u+w "$(APACHE_DIR)/$(APACHE_BASEURL)"
$(SUDO_APACHE) cp -r dist/* dist/.htaccess "$(APACHE_DIR)/$(APACHE_BASEURL)"
$(SUDO) mkdir -p "$(APACHE_DIR)/$(APACHE_BASEURL)"
$(SUDO) cp -r dist/* dist/.htaccess "$(APACHE_DIR)/$(APACHE_BASEURL)"
$(SUDO) chown -R $(APACHE_USER):$(APACHE_GROUP) "$(APACHE_DIR)/$(APACHE_BASEURL)"
$(SUDO) chmod -R u+w "$(APACHE_DIR)/$(APACHE_BASEURL)"

0 comments on commit 3e0f812

Please sign in to comment.