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

forgot how bash scripting works for a moment there

This commit is contained in:
Hayden 2024-02-11 13:16:25 -08:00 committed by GitHub
parent 5ec2154846
commit 8683ecfa2b
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_script_progression --message="Adding a configuration file..." --weight=1
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" 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" fi
chmod 400 "$install_dir/config.php" chmod 400 "$install_dir/config.php"
chown $app:$app "$install_dir/config.php" chown $app:$app "$install_dir/config.php"