mirror of
https://github.com/YunoHost-Apps/castopod_ynh.git
synced 2024-09-03 18:16:14 +02:00
commit
fe7baaa4fb
5 changed files with 22 additions and 5 deletions
|
@ -32,7 +32,7 @@ Castopod is easy to install and was built on top of CodeIgniter4, a powerful PHP
|
|||
- Multi-tenant: host as many podcasts as you want
|
||||
- Multi-user: add contributors and set roles
|
||||
|
||||
**Shipped version:** 1.7.1~ynh3
|
||||
**Shipped version:** 1.7.2~ynh1
|
||||
|
||||
**Demo:** https://podcast.podlibre.org/@podlibre_fr
|
||||
|
||||
|
|
|
@ -31,7 +31,7 @@ Castopod est une plate-forme d'hébergement gratuite et open source conçue pour
|
|||
- Multi-locataire : hébergez autant de podcasts que vous le souhaitez
|
||||
- Multi-utilisateur : ajouter des contributeurs et définir des rôles
|
||||
|
||||
**Version incluse :** 1.7.1~ynh3
|
||||
**Version incluse :** 1.7.2~ynh1
|
||||
|
||||
**Démo :** https://podcast.podlibre.org/@podlibre_fr
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ name = "Castopod"
|
|||
description.en = "Hosting platform made for podcasters"
|
||||
description.fr = "Plateforme d'hébergement conçue pour les podcasteurs"
|
||||
|
||||
version = "1.7.1~ynh3"
|
||||
version = "1.7.2~ynh1"
|
||||
|
||||
maintainers = ["eric_G"]
|
||||
|
||||
|
@ -42,8 +42,8 @@ ram.runtime = "50M"
|
|||
[resources.sources]
|
||||
|
||||
[resources.sources.main]
|
||||
url = "https://code.castopod.org/adaures/castopod/uploads/957f673c5f2f55aea9914e213a753845/castopod-1.7.1.zip"
|
||||
sha256 = "ac97e620bf936ae1d53884ebdd3c43802f072c6316806ffd9b802f99c3922537"
|
||||
url = "https://code.castopod.org/adaures/castopod/uploads/90fa3ed05c3cd11c99411da6f41c4960/castopod-1.7.2.zip"
|
||||
sha256 = "cfa886e3f70a54bdd94a99d39f41f86f04ecfafacfae29de674f384dd183de05"
|
||||
in_subdir = true
|
||||
|
||||
[resources.system_user]
|
||||
|
|
|
@ -20,6 +20,16 @@ ynh_restore_file --origin_path="$install_dir"
|
|||
chmod -R o-rwx "$install_dir"
|
||||
chown -R $app:www-data "$install_dir"
|
||||
|
||||
#=================================================
|
||||
# RESTORE THE DATA DIRECTORY
|
||||
#=================================================
|
||||
ynh_script_progression --message="Restoring the data directory..." --weight=1
|
||||
|
||||
ynh_restore_file --origin_path="$data_dir" --not_mandatory
|
||||
|
||||
chown -R $app:www-data "$data_dir"
|
||||
chmod -R 750 $data_dir
|
||||
|
||||
#=================================================
|
||||
# RESTORE THE MYSQL DATABASE
|
||||
#=================================================
|
||||
|
|
|
@ -38,6 +38,13 @@ if [ -z "${fpm_usage:-}" ]; then
|
|||
ynh_app_setting_set --app=$app --key=fpm_usage --value=$fpm_usage
|
||||
fi
|
||||
|
||||
# If redis_db doesn't exist, create it
|
||||
if [ -z "${redis_db:-}" ]; then
|
||||
# Configure redis
|
||||
redis_db=$(ynh_redis_get_free_db)
|
||||
ynh_app_setting_set --app="$app" --key=redis_db --value="$redis_db"
|
||||
fi
|
||||
|
||||
#=================================================
|
||||
# MOVE DATA TO __DATA_DIR__
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue