diff --git a/README.md b/README.md index 0af899f..88e49ba 100755 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/in ## Overview Castopod Server is an open-source hosting platform made for podcasters who want engage and interact with their audience. Please note that Castopod is still under heavy development: it may not be 100% stable and some features are still being developed. -**Shipped version:** 1.0.0 alpha.46 +**Shipped version:** 1.0.0 alpha.51 ## Screenshots diff --git a/README_fr.md b/README_fr.md index 7f08ef7..cdee4c5 100755 --- a/README_fr.md +++ b/README_fr.md @@ -11,7 +11,7 @@ Si vous n'avez pas YunoHost, consultez [le guide](https://yunohost.org/#/install ## Vue d'ensemble Castopod Server est une plate-forme d'hébergement open source conçue pour les podcasteurs qui souhaitent s'engager et interagir avec leur public. Veuillez noter que Castopod est toujours en développement: il n'est peut-être pas stable à 100% et certaines fonctionnalités sont encore en développement. -**Version incluse :** 1.0.0 alpha.46 +**Version incluse :** 1.0.0 alpha.51 ## Captures d'écran diff --git a/check_process b/check_process index 62db8d4..4e5524c 100755 --- a/check_process +++ b/check_process @@ -18,6 +18,8 @@ upgrade=1 #1.0.0 alpha.40 upgrade=1 from_commit=ac00b520875beed49bb138e795562e1f74700ab9 + #1.0.0 alpha.41 + upgrade=1 from_commit=9c603f6b659e4191028cc909311a0cbde9955155 backup_restore=1 multi_instance=1 change_url=1 @@ -27,4 +29,6 @@ Notification=none ;;; Upgrade options ; commit=ac00b520875beed49bb138e795562e1f74700ab9 name=1.0.0 alpha.40 + ; commit=9c603f6b659e4191028cc909311a0cbde9955155 + name=1.0.0 alpha.41 manifest_arg=domain=DOMAIN&path=PATH&is_public=1& diff --git a/conf/app.src b/conf/app.src index ca2f4ef..50996be 100755 --- a/conf/app.src +++ b/conf/app.src @@ -1,5 +1,5 @@ -SOURCE_URL=https://code.podlibre.org/podlibre/castopod/uploads/57048d507c2bc1647dfc939bbeeb5273/castopod-1.0.0-alpha.46.zip -SOURCE_SUM=ab6552a245b3fb56fa3fde75d5c88c32a9b6a73a2f0e9923b1aacd0193025f30 +SOURCE_URL=https://code.podlibre.org/podlibre/castopod/uploads/68426f365b5e116737cd06afccb4458f/castopod-1.0.0-alpha.51.zip +SOURCE_SUM=9cbd68a06d6785740a66f24e12d20c616154460ed8ad96b550c18225b38937ca SOURCE_SUM_PRG=sha256sum SOURCE_FORMAT=zip SOURCE_IN_SUBDIR=true diff --git a/conf/cron b/conf/cron new file mode 100644 index 0000000..7c7de7c --- /dev/null +++ b/conf/cron @@ -0,0 +1 @@ +* * * * * __USER__ /usr/bin/php__PHPVERSION__ __FINALPATH__/public/index.php scheduled-activities \ No newline at end of file diff --git a/manifest.json b/manifest.json index b81da44..1d08f05 100755 --- a/manifest.json +++ b/manifest.json @@ -6,7 +6,7 @@ "en": "Hosting platform made for podcasters", "fr": "Plateforme d'hébergement conçue pour les podcasteurs" }, - "version": "1.0.0-46~ynh1", + "version": "1.0.0-51~ynh1", "url": "https://podlibre.org/", "license": "GPL-3.0-only", "maintainer": { diff --git a/scripts/backup b/scripts/backup index 6f4f9c1..35163de 100755 --- a/scripts/backup +++ b/scripts/backup @@ -45,6 +45,12 @@ ynh_backup --src_path="$final_path" ynh_backup --src_path="/etc/nginx/conf.d/$domain.d/$app.conf" +#================================================= +# BACKUP VARIOUS FILES +#================================================= + +ynh_backup --src_path="/etc/cron.d/$app" + #================================================= # BACKUP THE PHP-FPM CONFIGURATION #================================================= diff --git a/scripts/install b/scripts/install index 4f96b62..c1dd1b8 100755 --- a/scripts/install +++ b/scripts/install @@ -98,6 +98,13 @@ ynh_script_progression --message="Configuring Castopod..." --weight=1 ynh_add_config --template="../conf/.env.example" --destination="$final_path/.env" +#================================================= +# SETUP A CRON +#================================================= +ynh_script_progression --message="Setuping a cron..." + +ynh_add_config --template="../conf/cron" --destination="/etc/cron.d/$app" + #================================================= # GENERIC FINALIZATION #================================================= @@ -106,7 +113,6 @@ ynh_add_config --template="../conf/.env.example" --destination="$final_path/.env # Set permissions to app files chown -R $app:$app $final_path -#chmod o-rwx $final_path chmod 600 $final_path/.env #================================================= diff --git a/scripts/remove b/scripts/remove index 5d4bbf6..f0dd710 100755 --- a/scripts/remove +++ b/scripts/remove @@ -53,6 +53,13 @@ ynh_script_progression --message="Removing PHP-FPM configuration..." --weight=2 # Remove the dedicated PHP-FPM config ynh_remove_fpm_config +#================================================= +# REMOVE VARIOUS FILES +#================================================= + +# Remove a cron file +ynh_secure_remove --file="/etc/cron.d/$app" + #================================================= # GENERIC FINALIZATION #================================================= diff --git a/scripts/restore b/scripts/restore index d21b214..72bfb17 100755 --- a/scripts/restore +++ b/scripts/restore @@ -91,6 +91,12 @@ db_pwd=$(ynh_app_setting_get --app=$app --key=mysqlpwd) ynh_mysql_setup_db --db_user=$db_user --db_name=$db_name --db_pwd=$db_pwd ynh_mysql_connect_as --user=$db_user --password=$db_pwd --database=$db_name < ./db.sql +#================================================= +# RESTORE VARIOUS FILES +#================================================= + +ynh_restore_file --origin_path="/etc/cron.d/$app" + #================================================= # GENERIC FINALIZATION #=================================================