From c94d66fec5cbe1dccf011cb34529ed9da0b3ac60 Mon Sep 17 00:00:00 2001 From: Hayden Date: Sun, 11 Feb 2024 13:20:37 -0800 Subject: [PATCH] Knew i wouldnt get it first shot but dang --- scripts/install | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/scripts/install b/scripts/install index c69bf31..f153d25 100755 --- a/scripts/install +++ b/scripts/install @@ -41,7 +41,11 @@ ynh_add_nginx_config #================================================= 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" fi +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" --destination="$install_dir/config.php" +fi chmod 400 "$install_dir/config.php" chown $app:$app "$install_dir/config.php" @@ -52,7 +56,7 @@ chown $app:$app "$install_dir/config.php" ynh_script_progression --message="Install database" --weight=1 pushd $install_dir - php$phpversion bin/migrate --install + php$phpversion bin/migrate --install popd #================================================= @@ -60,3 +64,4 @@ popd #================================================= ynh_script_progression --message="Installation of $app completed" --last +