mirror of
https://github.com/YunoHost-Apps/pixelfed_ynh.git
synced 2024-09-03 20:06:04 +02:00
Apply example_ynh
This commit is contained in:
parent
a928df6685
commit
0b418a49e4
2 changed files with 30 additions and 27 deletions
|
@ -1,30 +1,30 @@
|
||||||
{
|
{
|
||||||
"name": "Pixelfed",
|
"name": "Pixelfed",
|
||||||
"id": "pixelfed",
|
"id": "pixelfed",
|
||||||
"packaging_format": 1,
|
"packaging_format": 1,
|
||||||
"description": {
|
"description": {
|
||||||
"en": "ActivityPub Federated Image Sharing",
|
"en": "ActivityPub Federated Image Sharing",
|
||||||
"fr": "Logiciel de partage d'image fédéré via ActivityPub"
|
"fr": "Logiciel de partage d'image fédéré via ActivityPub"
|
||||||
},
|
|
||||||
"version": "0.10.10~ynh2",
|
|
||||||
"url": "https://pixelfed.org/",
|
|
||||||
"license": "AGPL-3.0-or-later",
|
|
||||||
"maintainer": [
|
|
||||||
{
|
|
||||||
"name": "Jean-Baptiste Holcroft",
|
|
||||||
"email": "jean-baptiste@holcroft.fr"
|
|
||||||
},
|
},
|
||||||
{
|
"version": "0.10.10~ynh2",
|
||||||
"name": "yalh76"
|
"url": "https://pixelfed.org/",
|
||||||
},
|
"license": "AGPL-3.0-or-later",
|
||||||
{
|
"maintainer": [
|
||||||
"name": "lapineige"
|
{
|
||||||
}
|
"name": "Jean-Baptiste Holcroft",
|
||||||
],
|
"email": "jean-baptiste@holcroft.fr"
|
||||||
"requirements": {
|
},
|
||||||
|
{
|
||||||
|
"name": "yalh76"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "lapineige"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"requirements": {
|
||||||
"yunohost": ">= 4.1.3"
|
"yunohost": ">= 4.1.3"
|
||||||
},
|
},
|
||||||
"multi_instance": true,
|
"multi_instance": true,
|
||||||
"services": [
|
"services": [
|
||||||
"nginx",
|
"nginx",
|
||||||
"php7.3-fpm"
|
"php7.3-fpm"
|
||||||
|
|
|
@ -48,7 +48,7 @@ if ynh_legacy_permissions_exists; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# BACKUP BEFORE CHANGE URL THEN ACTIVE TRAP
|
# BACKUP BEFORE UPGRADE THEN ACTIVE TRAP
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Backing up the app before upgrading (may take a while)..."
|
ynh_script_progression --message="Backing up the app before upgrading (may take a while)..."
|
||||||
|
|
||||||
|
@ -185,12 +185,15 @@ chown -R "$app": "$final_path"
|
||||||
ynh_exec_warn_less ynh_composer_exec --phpversion="$phpversion" --workdir="$final_path" --commands="update"
|
ynh_exec_warn_less ynh_composer_exec --phpversion="$phpversion" --workdir="$final_path" --commands="update"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# MODIFY A CONFIG FILE
|
# UPDATE A CONFIG FILE
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Modifying a config file..."
|
ynh_script_progression --message="Updating a config file..."
|
||||||
|
|
||||||
ynh_add_config --template="../conf/.env" --destination="$final_path/.env"
|
ynh_add_config --template="../conf/.env" --destination="$final_path/.env"
|
||||||
|
|
||||||
|
chmod 400 "$final_path/.env"
|
||||||
|
chown $app:$app "$final_path/.env"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# DEPLOYMENT
|
# DEPLOYMENT
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue