mirror of
https://github.com/YunoHost-Apps/castopod_ynh.git
synced 2024-09-03 18:16:14 +02:00
commit
15e1831096
10 changed files with 36 additions and 6 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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&
|
||||
|
|
|
@ -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
|
||||
|
|
1
conf/cron
Normal file
1
conf/cron
Normal file
|
@ -0,0 +1 @@
|
|||
* * * * * __USER__ /usr/bin/php__PHPVERSION__ __FINALPATH__/public/index.php scheduled-activities
|
|
@ -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": {
|
||||
|
|
|
@ -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
|
||||
#=================================================
|
||||
|
|
|
@ -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
|
||||
|
||||
#=================================================
|
||||
|
|
|
@ -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
|
||||
#=================================================
|
||||
|
|
|
@ -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
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue