mirror of
https://github.com/YunoHost-Apps/prestashop_ynh.git
synced 2024-09-03 20:06:39 +02:00
Update install
This commit is contained in:
parent
fa8c09e7aa
commit
57fdd7d1c6
1 changed files with 9 additions and 10 deletions
|
@ -74,6 +74,15 @@ ynh_app_setting_set "$app" db_name "$db_name"
|
|||
ynh_app_setting_set "$app" db_pwd "$db_pwd"
|
||||
ynh_app_setting_set "$app" db_user "$db_user"
|
||||
|
||||
#=================================================
|
||||
# NGINX CONFIGURATION
|
||||
#=================================================
|
||||
final_path=/var/www/$app
|
||||
sudo sed -i "s@__PATHTOCHANGE__@$path@g" ../conf/nginx.conf
|
||||
sudo sed -i "s@__FINALPATH__@$final_path@g" ../conf/nginx.conf
|
||||
sudo sed -i "s@__NAMETOCHANGE__@$app@g" ../conf/nginx.conf
|
||||
sudo cp ../conf/nginx.conf /etc/nginx/conf.d/$domain.d/$app.conf
|
||||
|
||||
#=================================================
|
||||
# Crée le repertoire de destination et check les permissions
|
||||
#=================================================
|
||||
|
@ -112,16 +121,6 @@ popd
|
|||
|
||||
echo -e "127.0.0.1 $domain #PRESTASHOP" | sudo tee -a /etc/hosts
|
||||
|
||||
|
||||
#=================================================
|
||||
# NGINX CONFIGURATION
|
||||
#=================================================
|
||||
|
||||
sudo cp ../conf/nginx.conf /etc/nginx/conf.d/$domain.d/$app.conf
|
||||
sudo sed -i "s@__PATHTOCHANGE__@$path@g" /etc/nginx/conf.d/$domain.d/$app.conf
|
||||
sudo sed -i "s@__FINALPATH__@$final_path@g" /etc/nginx/conf.d/$domain.d/$app.conf
|
||||
sudo sed -i "s@__NAMETOCHANGE__@$app@g" /etc/nginx/conf.d/$domain.d/$app.conf
|
||||
|
||||
#=================================================
|
||||
# SETUP SSOWAT
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue