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 2021-06-04 09:29:06 +02:00
parent 2fb929e7a8
commit e869091da8
No known key found for this signature in database
GPG key ID: 574F281483054D44

View file

@ -123,9 +123,9 @@ ynh_mysql_connect_as --user="$db_name" --password="$db_pwd" --database="$db_name
ynh_script_progression --message="Configuring phpMyAdmin..." ynh_script_progression --message="Configuring phpMyAdmin..."
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
chmod 400 "$final_path/config.inc.php" chown root:$app $final_path/config.inc.php
chown $app:$app "$final_path/config.inc.php" chmod 640 $final_path/config.inc.php
#================================================= #=================================================
# INSTALL DEPENDENCIES WITH COMPOSER # INSTALL DEPENDENCIES WITH COMPOSER
@ -147,9 +147,7 @@ ynh_composer_exec --commands="update --no-dev"
# Set permissions to app files # Set permissions to app files
chown -R root: $final_path chown -R root: $final_path
# config.inc.php contains sensitive data, restrict its access
chown root:$app $final_path/config.inc.php
chmod 640 $final_path/config.inc.php
# Setup phpMyAdmin temporary folder # Setup phpMyAdmin temporary folder
mkdir -p $final_path/tmp mkdir -p $final_path/tmp
chown $app: $final_path/tmp chown $app: $final_path/tmp