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:
parent
2fb929e7a8
commit
e869091da8
1 changed files with 4 additions and 6 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue