remove redundant chown
This commit is contained in:
parent
33ec31edfb
commit
c88007fd0e
@ -12,8 +12,6 @@ else
|
|||||||
curl -Lo "nameless.tar.gz" "https://github.com/NamelessMC/Nameless/archive/${VERSION}.tar.gz"
|
curl -Lo "nameless.tar.gz" "https://github.com/NamelessMC/Nameless/archive/${VERSION}.tar.gz"
|
||||||
tar -xf "nameless.tar.gz"
|
tar -xf "nameless.tar.gz"
|
||||||
mv Nameless-*/{,.[^.]}* "/data"
|
mv Nameless-*/{,.[^.]}* "/data"
|
||||||
chown -R www-data:www-data /data
|
|
||||||
chmod 755 -R /data
|
|
||||||
rm -rf /tmp/*
|
rm -rf /tmp/*
|
||||||
# remove some unnecessary files
|
# remove some unnecessary files
|
||||||
cd /data
|
cd /data
|
||||||
@ -31,6 +29,7 @@ else
|
|||||||
web.config.example \
|
web.config.example \
|
||||||
uploads/placeholder.txt
|
uploads/placeholder.txt
|
||||||
# fix permissions
|
# fix permissions
|
||||||
|
chown -R www-data:www-data /data
|
||||||
find . -type d -exec chmod 750 {} \;
|
find . -type d -exec chmod 750 {} \;
|
||||||
find . -type f -exec chmod 640 {} \;
|
find . -type f -exec chmod 640 {} \;
|
||||||
set +x
|
set +x
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user