mirror of
https://github.com/YunoHost-Apps/jappix_ynh.git
synced 2024-09-03 19:26:19 +02:00
commit
70af42a5c1
7 changed files with 9 additions and 16 deletions
|
@ -18,7 +18,7 @@ If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/in
|
|||
|
||||
A free social network
|
||||
|
||||
**Shipped version:** 1.2~ynh1
|
||||
**Shipped version:** 1.2~ynh2
|
||||
|
||||
## Screenshots
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@ Si vous n’avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) po
|
|||
|
||||
Un réseau social libre
|
||||
|
||||
**Version incluse :** 1.2~ynh1
|
||||
**Version incluse :** 1.2~ynh2
|
||||
|
||||
## Captures d’écran
|
||||
|
||||
|
|
|
@ -4,10 +4,6 @@ location __PATH__/ {
|
|||
# Path to source
|
||||
alias __FINALPATH__/ ;
|
||||
|
||||
if ($scheme = http) {
|
||||
rewrite ^ https://$server_name$request_uri? permanent;
|
||||
}
|
||||
|
||||
index index.php;
|
||||
|
||||
try_files $uri $uri/ index.php;
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
"en": "A free social network",
|
||||
"fr": "Un réseau social libre"
|
||||
},
|
||||
"version": "1.2~ynh1",
|
||||
"version": "1.2~ynh2",
|
||||
"url": "https://jappix.org/",
|
||||
"upstream": {
|
||||
"license": "AGPL-3.0-only",
|
||||
|
@ -19,7 +19,7 @@
|
|||
"email": "titoko@titoko.fr"
|
||||
},
|
||||
"requirements": {
|
||||
"yunohost": ">> 4.2.4"
|
||||
"yunohost": ">> 11.2"
|
||||
},
|
||||
"multi_instance": false,
|
||||
"services": [
|
||||
|
@ -30,8 +30,7 @@
|
|||
"install" : [
|
||||
{
|
||||
"name": "domain",
|
||||
"type": "domain",
|
||||
"example": "domain.org"
|
||||
"type": "domain"
|
||||
},
|
||||
{
|
||||
"name": "path",
|
||||
|
@ -51,7 +50,7 @@
|
|||
},
|
||||
{
|
||||
"name": "language",
|
||||
"type": "string",
|
||||
"type": "select",
|
||||
"ask": {
|
||||
"en": "Choose the default language of Jappix",
|
||||
"fr": "Choissisez la langue par défaut de Jappix"
|
||||
|
|
|
@ -88,6 +88,7 @@ phpversion=$(ynh_app_setting_get --app=$app --key=phpversion)
|
|||
#=================================================
|
||||
# Set Jappix configuration
|
||||
#=================================================
|
||||
ynh_script_progression --message="Configuring Jappix..." --weight=1
|
||||
|
||||
mkdir -p "$final_path/store/conf"
|
||||
|
||||
|
|
|
@ -32,10 +32,7 @@ phpversion=$(ynh_app_setting_get --app=$app --key=phpversion)
|
|||
#=================================================
|
||||
ynh_script_progression --message="Validating restoration parameters..." --weight=2
|
||||
|
||||
ynh_webpath_available --domain=$domain --path_url=$path_url \
|
||||
|| ynh_die --message="Path not available: ${domain}${path_url}"
|
||||
test ! -d $final_path \
|
||||
|| ynh_die --message="There is already a directory: $final_path "
|
||||
test ! -d $final_path || ynh_die --message="There is already a directory: $final_path "
|
||||
|
||||
#=================================================
|
||||
# STANDARD RESTORATION STEPS
|
||||
|
|
|
@ -67,7 +67,6 @@ ynh_system_user_create --username=$app --home_dir="$final_path"
|
|||
#=================================================
|
||||
# DOWNLOAD, CHECK AND UNPACK SOURCE
|
||||
#=================================================
|
||||
ynh_script_progression --message="Setting up source files..." --weight=6
|
||||
|
||||
if [ "$upgrade_type" == "UPGRADE_APP" ]
|
||||
then
|
||||
|
@ -100,6 +99,7 @@ ynh_add_fpm_config
|
|||
#=================================================
|
||||
# Set Jappix configuration
|
||||
#=================================================
|
||||
ynh_script_progression --message="Configuring Jappix..." --weight=1
|
||||
|
||||
mkdir -p "$final_path/store/conf"
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue