1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/phpmyadmin_ynh.git synced 2024-09-03 19:56:46 +02:00

Update install

This commit is contained in:
ericgaspar 2022-09-25 22:40:47 +02:00
parent 110c065b54
commit b52a0452eb

View file

@ -94,6 +94,7 @@ ynh_script_progression --message="Setting up source files..." --weight=6
ynh_app_setting_set --app=$app --key=final_path --value=$final_path ynh_app_setting_set --app=$app --key=final_path --value=$final_path
# Download, check integrity, uncompress and patch the source from app.src # Download, check integrity, uncompress and patch the source from app.src
ynh_setup_source --dest_dir="$final_path" ynh_setup_source --dest_dir="$final_path"
ynh_add_config --template="../conf/composer.json" --destination="$final_path/scomposer.json"
chmod 750 "$final_path" chmod 750 "$final_path"
chmod -R o-rwx "$final_path" chmod -R o-rwx "$final_path"
@ -134,8 +135,6 @@ ynh_mysql_connect_as --user="$db_name" --password="$db_pwd" --database="$db_name
#================================================= #=================================================
ynh_script_progression --message="Configuring phpMyAdmin..." --weight=2 ynh_script_progression --message="Configuring phpMyAdmin..." --weight=2
ynh_add_config --template="../conf/composer.json" --destination="$final_path/scomposer.json"
ynh_add_config --template="../conf/config.inc.php" --destination="$final_path/config.inc.php" ynh_add_config --template="../conf/config.inc.php" --destination="$final_path/config.inc.php"
# config.inc.php contains sensitive data, restrict its access # config.inc.php contains sensitive data, restrict its access
chown $app: $final_path/config.inc.php chown $app: $final_path/config.inc.php