1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/gitlist_ynh.git synced 2024-09-03 18:36:18 +02:00
This commit is contained in:
Éric Gaspar 2023-01-29 15:18:47 +01:00
parent 66fb6ad861
commit d16d1f85bb
2 changed files with 3 additions and 13 deletions

View file

@ -3,16 +3,6 @@ version = "1.0"
[main] [main]
name = "GitList configuration" 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] [main.php_fpm_config]
name = "PHP-FPM configuration" name = "PHP-FPM configuration"

View file

@ -42,8 +42,6 @@ ynh_script_progression --message="Validating installation parameters..." --weigh
final_path=/var/www/$app final_path=/var/www/$app
test ! -e "$final_path" || ynh_die --message="This path already contains a folder" test ! -e "$final_path" || ynh_die --message="This path already contains a folder"
datadir=/home/yunohost.app/$app
# Register (book) web path # Register (book) web path
ynh_webpath_register --app=$app --domain=$domain --path_url=$path_url 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_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_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=fpm_usage --value=$fpm_usage
ynh_app_setting_set --app=$app --key=datadir --value=$datadir
#================================================= #=================================================
# INSTALL DEPENDENCIES # 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 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 mkdir -p $datadir
chmod 750 "$datadir" chmod 750 "$datadir"