mirror of
https://github.com/YunoHost-Apps/my_webapp_ynh.git
synced 2024-09-03 19:46:26 +02:00
oopsies /o\
This commit is contained in:
parent
93532de252
commit
8c2943a6b0
1 changed files with 4 additions and 4 deletions
|
@ -68,7 +68,7 @@ set__free_footprint() {
|
||||||
}
|
}
|
||||||
|
|
||||||
set__password() {
|
set__password() {
|
||||||
if [ $password -eq "" ]
|
if [ "$password" == "" ]
|
||||||
then
|
then
|
||||||
ynh_app_setting_set --app=$app --key=password --value="$password"
|
ynh_app_setting_set --app=$app --key=password --value="$password"
|
||||||
fi
|
fi
|
||||||
|
@ -104,12 +104,12 @@ ynh_app_config_apply() {
|
||||||
if [ "${changed[phpversion]}" == "true" ] || "${changed[fpm_usage]}" == "true" ] || [ "${changed[fpm_footprint]}" == "true" ] || [ "${changed[free_footprint]}" == "true" ]; then
|
if [ "${changed[phpversion]}" == "true" ] || "${changed[fpm_usage]}" == "true" ] || [ "${changed[fpm_footprint]}" == "true" ] || [ "${changed[free_footprint]}" == "true" ]; then
|
||||||
ynh_remove_fpm_config
|
ynh_remove_fpm_config
|
||||||
|
|
||||||
if [[ ! "$phpversion" == "none" ]]; then
|
if [ ! "$phpversion" == "none" ]; then
|
||||||
ynh_add_fpm_config --phpversion=$phpversion --usage=$fpm_usage --footprint=$fpm_footprint
|
ynh_add_fpm_config --phpversion=$phpversion --usage=$fpm_usage --footprint=$fpm_footprint
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ ! $phpversion == "none" ]]
|
if [ ! "$phpversion" == "none" ]
|
||||||
then
|
then
|
||||||
ynh_add_fpm_config --phpversion=$phpversion --usage=$fpm_usage --footprint=$fpm_footprint
|
ynh_add_fpm_config --phpversion=$phpversion --usage=$fpm_usage --footprint=$fpm_footprint
|
||||||
fi
|
fi
|
||||||
|
@ -118,7 +118,7 @@ ynh_app_config_apply() {
|
||||||
then
|
then
|
||||||
ynh_system_user_add_group --username=$app --groups="sftp.app"
|
ynh_system_user_add_group --username=$app --groups="sftp.app"
|
||||||
|
|
||||||
if [[ ! $password == "" ]]
|
if [ ! "$password" == "" ]
|
||||||
then
|
then
|
||||||
chpasswd <<< "${app}:${password}"
|
chpasswd <<< "${app}:${password}"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue