mirror of
https://github.com/YunoHost-Apps/gitlist_ynh.git
synced 2024-09-03 18:36:18 +02:00
Fix
This commit is contained in:
parent
66fb6ad861
commit
d16d1f85bb
2 changed files with 3 additions and 13 deletions
|
@ -3,16 +3,6 @@ version = "1.0"
|
|||
[main]
|
||||
name = "GitList configuration"
|
||||
|
||||
[main.config]
|
||||
name = "Configuration Options"
|
||||
|
||||
[main.config.datadir]
|
||||
ask = "Default Repository Directories"
|
||||
type = "path"
|
||||
default = "/home/yunohost.app/__APP__"
|
||||
help = "List of directories containing repositories"
|
||||
bind = "EnableCoverAnimation:/var/www/__APP__/config/config.yml"
|
||||
|
||||
[main.php_fpm_config]
|
||||
name = "PHP-FPM configuration"
|
||||
|
||||
|
|
|
@ -42,8 +42,6 @@ ynh_script_progression --message="Validating installation parameters..." --weigh
|
|||
final_path=/var/www/$app
|
||||
test ! -e "$final_path" || ynh_die --message="This path already contains a folder"
|
||||
|
||||
datadir=/home/yunohost.app/$app
|
||||
|
||||
# Register (book) web path
|
||||
ynh_webpath_register --app=$app --domain=$domain --path_url=$path_url
|
||||
|
||||
|
@ -57,7 +55,6 @@ ynh_app_setting_set --app=$app --key=path --value=$path_url
|
|||
ynh_app_setting_set --app=$app --key=fpm_footprint --value=$fpm_footprint
|
||||
ynh_app_setting_set --app=$app --key=fpm_free_footprint --value=$fpm_free_footprint
|
||||
ynh_app_setting_set --app=$app --key=fpm_usage --value=$fpm_usage
|
||||
ynh_app_setting_set --app=$app --key=datadir --value=$datadir
|
||||
|
||||
#=================================================
|
||||
# INSTALL DEPENDENCIES
|
||||
|
@ -101,6 +98,9 @@ phpversion=$(ynh_app_setting_get --app=$app --key=phpversion)
|
|||
#=================================================
|
||||
ynh_script_progression --message="Creating a data directory..." --weight=1
|
||||
|
||||
datadir=/home/yunohost.app/$app
|
||||
ynh_app_setting_set --app=$app --key=datadir --value=$datadir
|
||||
|
||||
mkdir -p $datadir
|
||||
|
||||
chmod 750 "$datadir"
|
||||
|
|
Loading…
Add table
Reference in a new issue