mirror of
https://github.com/YunoHost-Apps/cypht_ynh.git
synced 2024-09-03 18:26:09 +02:00
fix
This commit is contained in:
parent
8665123a1b
commit
f9fac0f4e0
2 changed files with 14 additions and 14 deletions
|
@ -66,11 +66,16 @@ ynh_install_composer --install_args="--ignore-platform-reqs"
|
|||
#=================================================
|
||||
ynh_script_progression --message="Adding a configuration file..." --weight=1
|
||||
|
||||
ynh_add_config --template="../conf/hm3.sample.ini" --destination="$install_dir/hm3.ini"
|
||||
ynh_add_config --template="hm3.sample.ini" --destination="$install_dir/hm3.ini"
|
||||
|
||||
chmod 400 "$install_dir/hm3.ini"
|
||||
chown $app:$app "$install_dir/hm3.ini"
|
||||
|
||||
ynh_add_config --template="ldap.php" --destination="$install_dir/conf/ldap.php"
|
||||
|
||||
chmod 400 "$install_dir/conf/ldap.php"
|
||||
chown $app:$app "$install_dir/conf/ldap.php"
|
||||
|
||||
#=================================================
|
||||
# ADD AN ADMIN USER
|
||||
#=================================================
|
||||
|
|
|
@ -15,12 +15,6 @@ source /usr/share/yunohost/helpers
|
|||
|
||||
timezone=$(cat /etc/timezone)
|
||||
|
||||
#=================================================
|
||||
# CHECK VERSION
|
||||
#=================================================
|
||||
|
||||
upgrade_type=$(ynh_check_app_version_changed)
|
||||
|
||||
#=================================================
|
||||
# STANDARD UPGRADE STEPS
|
||||
#=================================================
|
||||
|
@ -49,14 +43,10 @@ fi
|
|||
#=================================================
|
||||
# DOWNLOAD, CHECK AND UNPACK SOURCE
|
||||
#=================================================
|
||||
ynh_script_progression --message="Upgrading source files..." --weight=4
|
||||
|
||||
if [ "$upgrade_type" == "UPGRADE_APP" ]
|
||||
then
|
||||
ynh_script_progression --message="Upgrading source files..." --weight=4
|
||||
|
||||
# Download, check integrity, uncompress and patch the source from app.src
|
||||
ynh_setup_source --dest_dir="$install_dir" --keep="hm3.ini"
|
||||
fi
|
||||
# Download, check integrity, uncompress and patch the source from app.src
|
||||
ynh_setup_source --dest_dir="$install_dir" --keep="hm3.ini"
|
||||
|
||||
chmod -R o-rwx "$install_dir"
|
||||
chown -R $app:www-data "$install_dir"
|
||||
|
@ -84,6 +74,11 @@ ynh_add_nginx_config
|
|||
#chmod 400 "$install_dir/hm3.ini"
|
||||
#chown $app:$app "$install_dir/hm3.ini"
|
||||
|
||||
ynh_add_config --template="ldap.php" --destination="$install_dir/conf/ldap.php"
|
||||
|
||||
chmod 400 "$install_dir/conf/ldap.php"
|
||||
chown $app:$app "$install_dir/conf/ldap.php"
|
||||
|
||||
#=================================================
|
||||
# END OF SCRIPT
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue