1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/ampache_ynh.git synced 2024-09-03 18:15:55 +02:00

Update install

This commit is contained in:
ericgaspar 2022-05-10 14:25:01 +02:00
parent 500e4699e1
commit 658a55d357
No known key found for this signature in database
GPG key ID: 574F281483054D44

View file

@ -112,12 +112,12 @@ ynh_app_setting_set --app=$app --key=phpversion --value=$phpversion
#=================================================
# CONFIGURE AMPACHE
#=================================================
ynh_script_progression --message="Preconfiguring Ampache..." --weight=2
ynh_script_progression --message="Preconfiguring $app..." --weight=2
ynh_add_config --template="../conf/ampache.cfg.php" --destination="$final_path/config/ampache.cfg.php"
chmod 600 $final_path/config/ampache.cfg.php
chown $app: $final_path/config/ampache.cfg.php
chmod 600 "$final_path/config/ampache.cfg.php"
chown $app: "$final_path/config/ampache.cfg.php"
#=================================================
# LOAD DEFAULT DATABASE
@ -130,7 +130,7 @@ ynh_mysql_connect_as --user=$db_user --password="$db_pwd" --database=$db_name <
#=================================================
# INSTALL AMPACHE WITH COMPOSER
#=================================================
ynh_script_progression --message="Installing ampache with Composer..." --weight=45
ynh_script_progression --message="Installing $app with Composer..." --weight=45
# Install composer
ynh_install_composer --install_args="--ignore-platform-req=ext-intl"
@ -145,7 +145,7 @@ ynh_multimedia_build_main_dir
#=================================================
# PRE CONFIGURE AMPACHE
#=================================================
ynh_script_progression --message="Configuring Ampache..." --weight=5
ynh_script_progression --message="Configuring $app..." --weight=5
# Set the app as temporarily public for curl call
ynh_permission_update --permission="main" --add="visitors"