1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/leed_ynh.git synced 2024-09-03 19:26:32 +02:00

Plus de maj de langue

Le choix de langue est fait par curl lors de l'installation.
This commit is contained in:
Maniack Crudelis 2014-08-23 19:55:30 +02:00
parent 421ff2846a
commit fc0adb92e2

View file

@ -3,7 +3,6 @@
# Retrieve arguments
domain=$(sudo yunohost app setting leed domain)
path=$(sudo yunohost app setting leed path)
language=$(sudo yunohost app setting leed language)
is_public=$(sudo yunohost app setting leed is_public)
# Copy files to right place
@ -19,9 +18,6 @@ sudo chown -R www-data: $final_path
sudo sed -i "s@PATHTOCHANGE@$path@g" /etc/nginx/conf.d/$domain.d/leed.conf
sudo sed -i "s@ALIASTOCHANGE@$final_path/@g" /etc/nginx/conf.d/$domain.d/leed.conf
# Réglage de la langue choisie
sudo sed -i "s@define('LANGUAGE','.*');@define('LANGUAGE','$language');@" $final_path/constant.php
# Files owned by root, www-data can just read
sudo find $final_path -type f | xargs sudo chmod 644
sudo find $final_path -type d | xargs sudo chmod 755