mirror of
https://github.com/YunoHost-Apps/paheko_ynh.git
synced 2024-09-03 19:56:22 +02:00
add a configuration file on
This commit is contained in:
parent
974f1033cd
commit
0f764f5672
1 changed files with 6 additions and 6 deletions
|
@ -41,6 +41,12 @@ then
|
||||||
ynh_setup_source --dest_dir="$install_dir" --keep="config.local.php data/plugins"
|
ynh_setup_source --dest_dir="$install_dir" --keep="config.local.php data/plugins"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ ! -f "$data_dir/data/config.local.user.php" ]; then
|
||||||
|
ynh_add_config --template="config.local.user.php" --destination="$data_dir/data/config.local.user.php"
|
||||||
|
chmod 650 "$data_dir/data/config.local.user.php"
|
||||||
|
chown $app:$app "$data_dir/data/config.local.user.php"
|
||||||
|
fi
|
||||||
|
|
||||||
chmod -R o-rwx "$install_dir"
|
chmod -R o-rwx "$install_dir"
|
||||||
chown -R $app:www-data "$install_dir"
|
chown -R $app:www-data "$install_dir"
|
||||||
|
|
||||||
|
@ -70,12 +76,6 @@ then
|
||||||
chown $app:$app "$install_dir/config.local.php"
|
chown $app:$app "$install_dir/config.local.php"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ! -f "$data_dir/data/config.local.user.php" ]; then
|
|
||||||
ynh_script_progression --message="Upgrading system configurations related to $app..." --weight=1
|
|
||||||
ynh_add_config --template="config.local.user.php" --destination="$data_dir/data/config.local.user.php"
|
|
||||||
chmod 650 "$data_dir/data/config.local.user.php"
|
|
||||||
chown $app:$app "$data_dir/config.local.user.php"
|
|
||||||
fi
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# END OF SCRIPT
|
# END OF SCRIPT
|
||||||
|
|
Loading…
Add table
Reference in a new issue