1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/xbackbone_ynh.git synced 2024-09-03 19:15:53 +02:00

fix subdomain installations

This commit is contained in:
Hayden 2024-02-11 13:05:53 -08:00 committed by GitHub
parent 50872bd2d8
commit 7bd69fbc1b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -41,7 +41,7 @@ ynh_add_nginx_config
#=================================================
ynh_script_progression --message="Adding a configuration file..." --weight=1
ynh_add_config --template="../conf/config.php" --destination="$install_dir/config.php"
if "$path" == "/" then ynh_add_config --template="../conf/config-subdomain.php" --destination="$install_dir/config.php" else ynh_add_config --template="../conf/config-withpath.php"
chmod 400 "$install_dir/config.php"
chown $app:$app "$install_dir/config.php"