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:
parent
421ff2846a
commit
fc0adb92e2
1 changed files with 0 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue