mirror of
https://github.com/YunoHost-Apps/osticket_ynh.git
synced 2024-09-03 19:56:17 +02:00
Fix install
This commit is contained in:
parent
9fe117ddde
commit
9f07cb4eb9
2 changed files with 8 additions and 6 deletions
|
@ -136,10 +136,10 @@ ynh_add_config --template="../conf/cron" --destination="/etc/cron.d/$app"
|
|||
#=================================================
|
||||
ynh_script_progression --message="Adding a config file..."
|
||||
|
||||
ynh_add_config --template="../conf/ost-sampleconfig.php" --destination="$final_path/include/ost-config.php"
|
||||
cp -f "../conf/ost-sampleconfig.php" "$final_path/include/ost-config.php"
|
||||
|
||||
chmod 400 "$final_path/include/ost-config.php"
|
||||
chown $app:$app "$final_path/include/ost-config.php"
|
||||
chmod 666 "$final_path/include/ost-config.php"
|
||||
chown $app:www-data "$final_path/include/ost-config.php"
|
||||
|
||||
#=================================================
|
||||
# BUILD PLUGINS
|
||||
|
@ -170,6 +170,7 @@ pushd "$final_path/include/plugins/build"
|
|||
#php${phpversion} -dphar.readonly=0 make.php build preventautoscroll
|
||||
#cp *.phar $final_path/include/plugins/.
|
||||
popd
|
||||
|
||||
ynh_secure_remove --file="$final_path/include/plugins/build"
|
||||
|
||||
#=================================================
|
||||
|
@ -202,6 +203,9 @@ ynh_permission_update --permission="main" --remove="visitors"
|
|||
|
||||
ynh_secure_remove --file="$final_path/setup"
|
||||
|
||||
chmod 400 "$final_path/include/ost-config.php"
|
||||
chown $app:www-data "$final_path/include/ost-config.php"
|
||||
|
||||
#=================================================
|
||||
# GENERIC FINALIZATION
|
||||
#=================================================
|
||||
|
|
|
@ -138,10 +138,8 @@ phpversion=$(ynh_app_setting_get --app=$app --key=phpversion)
|
|||
#=================================================
|
||||
ynh_script_progression --message="Updating a config file..."
|
||||
|
||||
ynh_add_config --template="../conf/ost-sampleconfig.php" --destination="$final_path/include/ost-config.php"
|
||||
|
||||
chmod 400 "$final_path/include/ost-config.php"
|
||||
chown $app:$app "$final_path/include/ost-config.php"
|
||||
chown $app:www-data "$final_path/include/ost-config.php"
|
||||
|
||||
#=================================================
|
||||
# BUILD PLUGINS
|
||||
|
|
Loading…
Add table
Reference in a new issue