do not let www-data own the static js/html files
this is neither necessary, nor useful those files are meant to be read only anyway, so there is no gain in them being owned by www-data Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
parent
b0aec7d532
commit
64364852e1
@ -21,7 +21,7 @@ pve-lang-%.js: %.po
|
||||
.PHONY: install
|
||||
install: $(patsubst %, pve-lang-%.js, $(LINGUAS))
|
||||
install -d ${WWWLOCALEDIR}
|
||||
install -m 0644 -o www-data -g www-data $^ ${WWWLOCALEDIR}
|
||||
install -m 0644 $^ ${WWWLOCALEDIR}
|
||||
|
||||
clean:
|
||||
rm -rf *~ *.po.tmp *.js.tmp pve-lang-*.js
|
||||
|
@ -9,5 +9,5 @@ all: ${SUBDIRS} index.html.tpl
|
||||
.PHONY: install
|
||||
install:
|
||||
set -e && for i in ${SUBDIRS}; do ${MAKE} -C $$i $@; done
|
||||
install -m 0644 -o www-data -g www-data index.html.tpl ${WWWBASEDIR}
|
||||
install -m 0644 index.html.tpl ${WWWBASEDIR}
|
||||
|
||||
|
@ -5,7 +5,7 @@ all:
|
||||
.PHONY: install
|
||||
install: ext6-pve.css font-awesome.css
|
||||
install -d ${WWWCSSDIR}
|
||||
install -m 0644 -o www-data -g www-data $? ${WWWCSSDIR}
|
||||
install -m 0644 $? ${WWWCSSDIR}
|
||||
set -e && ${MAKE} -C fonts install
|
||||
|
||||
.PHONY: clean
|
||||
|
@ -5,7 +5,7 @@ all:
|
||||
.PHONY: install
|
||||
install: README fontawesome-webfont.ttf FontAwesome.otf fontawesome-webfont.woff2 fontawesome-webfont.svg fontawesome-webfont.woff fontawesome-webfont.eot
|
||||
install -d ${WWWFONTSDIR}
|
||||
install -m 0644 -o www-data -g www-data $? ${WWWFONTSDIR}
|
||||
install -m 0644 $? ${WWWFONTSDIR}
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
|
@ -73,7 +73,7 @@ IMAGES = ${GNOME_IMAGES} \
|
||||
.PHONY: install
|
||||
install: ${IMAGES}
|
||||
install -d ${WWWIMAGEDIR}
|
||||
install -m 0644 -o www-data -g www-data ${IMAGES} ${WWWIMAGEDIR}
|
||||
install -m 0644 ${IMAGES} ${WWWIMAGEDIR}
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
|
@ -235,7 +235,7 @@ all: pvemanagerlib.js
|
||||
install: pvemanagerlib.js
|
||||
install -d ${WWWBASEDIR}/root
|
||||
install -d ${WWWJSDIR}
|
||||
install -m 0644 -o www-data -g www-data pvemanagerlib.js ${WWWJSDIR}
|
||||
install -m 0644 pvemanagerlib.js ${WWWJSDIR}
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
|
@ -35,7 +35,6 @@ pvemanager-mobile.js: ${JSSRC}
|
||||
install: pvemanager-mobile.js
|
||||
install -d ${WWWTOUCHDIR}
|
||||
install -m 0644 pvemanager-mobile.js ${WWWTOUCHDIR}
|
||||
chown -R www-data:www-data ${WWWTOUCHDIR}
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
|
@ -24,7 +24,6 @@ install: ${TOUCHDATA} index.html.tpl
|
||||
install -m 0644 index.html.tpl ${WWWTOUCHDIR}
|
||||
install -d ${WWWTOUCHDIR}/resources/themes/images
|
||||
cp -a ${TOUCHDIR}/resources/themes/images/default ${WWWTOUCHDIR}/resources/themes/images
|
||||
chown -R www-data:www-data ${WWWTOUCHDIR}
|
||||
find ${WWWTOUCHDIR} -type f -exec chmod -R 0644 '{}' ';'
|
||||
|
||||
.PHONY: clean
|
||||
|
Loading…
x
Reference in New Issue
Block a user