mirror of
https://github.com/YunoHost-Apps/kimai2_ynh.git
synced 2024-09-03 19:26:26 +02:00
set true/false
This commit is contained in:
parent
97cd404a68
commit
ba22325ffc
2 changed files with 6 additions and 12 deletions
|
@ -33,6 +33,12 @@ phpversion=$YNH_PHP_VERSION
|
||||||
|
|
||||||
app=$YNH_APP_INSTANCE_NAME
|
app=$YNH_APP_INSTANCE_NAME
|
||||||
|
|
||||||
|
if [ $registration -eq 1 ]; then
|
||||||
|
registration="true"
|
||||||
|
else
|
||||||
|
registration="false"
|
||||||
|
fi
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# CHECK IF THE APP CAN BE INSTALLED WITH THESE ARGS
|
# CHECK IF THE APP CAN BE INSTALLED WITH THESE ARGS
|
||||||
#=================================================
|
#=================================================
|
||||||
|
@ -135,12 +141,6 @@ setfacl -R -m g:"www-data":rwX -m u:$app:rwX "$final_path/var/"
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Adding a configuration file..."
|
ynh_script_progression --message="Adding a configuration file..."
|
||||||
|
|
||||||
if [ $registration -eq 1 ]; then
|
|
||||||
registration="true"
|
|
||||||
else
|
|
||||||
registration="false"
|
|
||||||
fi
|
|
||||||
|
|
||||||
ynh_add_config --template="../conf/local.yaml" --destination="$final_path/config/packages/local.yaml"
|
ynh_add_config --template="../conf/local.yaml" --destination="$final_path/config/packages/local.yaml"
|
||||||
|
|
||||||
chmod 400 "$final_path/config/packages/local.yaml"
|
chmod 400 "$final_path/config/packages/local.yaml"
|
||||||
|
|
|
@ -153,12 +153,6 @@ ynh_add_fpm_config --phpversion=$phpversion --usage=$fpm_usage --footprint=$fpm_
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Adding a configuration file..."
|
ynh_script_progression --message="Adding a configuration file..."
|
||||||
|
|
||||||
if [ $registration -eq 1 ]; then
|
|
||||||
registration="true"
|
|
||||||
else
|
|
||||||
registration="false"
|
|
||||||
fi
|
|
||||||
|
|
||||||
ynh_add_config --template="../conf/local.yaml" --destination="$final_path/config/packages/local.yaml"
|
ynh_add_config --template="../conf/local.yaml" --destination="$final_path/config/packages/local.yaml"
|
||||||
|
|
||||||
chmod 400 "$final_path/config/packages/local.yaml"
|
chmod 400 "$final_path/config/packages/local.yaml"
|
||||||
|
|
Loading…
Add table
Reference in a new issue