1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/lionwiki-t2t_ynh.git synced 2024-09-03 19:36:27 +02:00

update script

This commit is contained in:
farvardin 2020-04-06 09:34:30 +02:00
parent 1c8bc51cf0
commit be8dc1c9f3

View file

@ -210,7 +210,9 @@ ynh_replace_string --match_string="__YNH_COLOR__" --replace_string="$color" -
# ynh_replace_string --match_string="__YNH_COLOR__" --replace_string="555555" --target_file="$final_path/templates/minimaxing/minimaxing.less" # ynh_replace_string --match_string="__YNH_COLOR__" --replace_string="555555" --target_file="$final_path/templates/minimaxing/minimaxing.less"
#fi #fi
# soon lessc will require the --js option
# lessc --js $final_path/templates/minimaxing/minimaxing.less > $final_path/templates/minimaxing/minimaxing.css # lessc --js $final_path/templates/minimaxing/minimaxing.less > $final_path/templates/minimaxing/minimaxing.css
lessc $final_path/templates/minimaxing/minimaxing.less > $final_path/templates/minimaxing/minimaxing.css
@ -307,10 +309,12 @@ chown -R root: $final_path
# Wiki needs to write inside these folders. Make "Wiki" owner # Wiki needs to write inside these folders. Make "Wiki" owner
chown -R $app:root $final_path/var chown -R $app:root $final_path/var
chown -R $app:root $final_path/templates
# Allow access to public assets like style sheets # Allow access to public assets like style sheets
find $final_path/templates -type f -print0 | xargs -0 chmod 0644 find $final_path/templates -type f -print0 | xargs -0 chmod 0644
find $final_path/templates -type d -print0 | xargs -0 chmod 0755 find $final_path/templates -type d -print0 | xargs -0 chmod 0755
find $final_path/templates/minimaxing/minimaxing.css -type f -print0 | xargs -0 chmod 0755
# Using "find" instead of "chmod -R 755" so files does not become executable too # Using "find" instead of "chmod -R 755" so files does not become executable too
# chmod : -rwxr-xr-x 1 root root 241 May 3 08:36 index.html => BAD # chmod : -rwxr-xr-x 1 root root 241 May 3 08:36 index.html => BAD
# find : -rw-r--r-- 1 1001 1002 241 May 3 08:36 index.html => GOOD # find : -rw-r--r-- 1 1001 1002 241 May 3 08:36 index.html => GOOD