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

Knew i wouldnt get it first shot but dang

This commit is contained in:
Hayden 2024-02-11 13:20:37 -08:00 committed by GitHub
parent 8683ecfa2b
commit c94d66fec5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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