mirror of
https://github.com/YunoHost-Apps/castopod_ynh.git
synced 2024-09-03 18:16:14 +02:00
commit
c8691eb692
14 changed files with 44 additions and 42 deletions
|
@ -17,13 +17,13 @@ If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/in
|
||||||
|
|
||||||
Hosting platform made for podcasters
|
Hosting platform made for podcasters
|
||||||
|
|
||||||
**Shipped version:** 1.0.0-80~ynh1
|
**Shipped version:** 1.0.0-88~ynh1
|
||||||
|
|
||||||
**Demo:** https://podcast.podlibre.org/@podlibre_fr
|
**Demo:** https://podcast.podlibre.org/@podlibre_fr
|
||||||
|
|
||||||
## Screenshots
|
## Screenshots
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
## Disclaimers / important information
|
## Disclaimers / important information
|
||||||
|
|
||||||
|
@ -42,7 +42,7 @@ Hosting platform made for podcasters
|
||||||
|
|
||||||
## Documentation and resources
|
## Documentation and resources
|
||||||
|
|
||||||
* Official app website: https://podlibre.org/
|
* Official app website: https://castopod.org/
|
||||||
* Official admin documentation: https://podlibre.org/create-a-podcast-in-3mn-with-castopod/
|
* Official admin documentation: https://podlibre.org/create-a-podcast-in-3mn-with-castopod/
|
||||||
* Upstream app code repository: https://code.podlibre.org/podlibre/castopod-host
|
* Upstream app code repository: https://code.podlibre.org/podlibre/castopod-host
|
||||||
* YunoHost documentation for this app: https://yunohost.org/app_castopod
|
* YunoHost documentation for this app: https://yunohost.org/app_castopod
|
||||||
|
|
|
@ -13,13 +13,13 @@ Si vous n'avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) pour
|
||||||
|
|
||||||
Plateforme d'hébergement conçue pour les podcasteurs
|
Plateforme d'hébergement conçue pour les podcasteurs
|
||||||
|
|
||||||
**Version incluse :** 1.0.0-80~ynh1
|
**Version incluse :** 1.0.0-88~ynh1
|
||||||
|
|
||||||
**Démo :** https://podcast.podlibre.org/@podlibre_fr
|
**Démo :** https://podcast.podlibre.org/@podlibre_fr
|
||||||
|
|
||||||
## Captures d'écran
|
## Captures d'écran
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
## Avertissements / informations importantes
|
## Avertissements / informations importantes
|
||||||
|
|
||||||
|
@ -38,7 +38,7 @@ Plateforme d'hébergement conçue pour les podcasteurs
|
||||||
|
|
||||||
## Documentations et ressources
|
## Documentations et ressources
|
||||||
|
|
||||||
* Site officiel de l'app : https://podlibre.org/
|
* Site officiel de l'app : https://castopod.org/
|
||||||
* Documentation officielle de l'admin : https://podlibre.org/create-a-podcast-in-3mn-with-castopod/
|
* Documentation officielle de l'admin : https://podlibre.org/create-a-podcast-in-3mn-with-castopod/
|
||||||
* Dépôt de code officiel de l'app : https://code.podlibre.org/podlibre/castopod-host
|
* Dépôt de code officiel de l'app : https://code.podlibre.org/podlibre/castopod-host
|
||||||
* Documentation YunoHost pour cette app : https://yunohost.org/app_castopod
|
* Documentation YunoHost pour cette app : https://yunohost.org/app_castopod
|
||||||
|
|
|
@ -13,8 +13,8 @@
|
||||||
setup_private=1
|
setup_private=1
|
||||||
setup_public=1
|
setup_public=1
|
||||||
upgrade=1
|
upgrade=1
|
||||||
#1.0.0 alpha.75
|
#1.0.0 alpha.80
|
||||||
upgrade=1 from_commit=c8a5545d2b1d61342d837b7608fdc64a5b71b25b
|
upgrade=1 from_commit=074aac0f8caa4597bdc34c0e9355cf898546f0df
|
||||||
backup_restore=1
|
backup_restore=1
|
||||||
multi_instance=1
|
multi_instance=1
|
||||||
change_url=1
|
change_url=1
|
||||||
|
@ -22,6 +22,6 @@
|
||||||
Email=
|
Email=
|
||||||
Notification=none
|
Notification=none
|
||||||
;;; Upgrade options
|
;;; Upgrade options
|
||||||
; commit=c8a5545d2b1d61342d837b7608fdc64a5b71b25b
|
; commit=074aac0f8caa4597bdc34c0e9355cf898546f0df
|
||||||
name=1.0.0 alpha.75
|
name=1.0.0 alpha.80
|
||||||
manifest_arg=domain=DOMAIN&path=PATH&admin=USER&language=fr&is_public=1&password=pass&
|
manifest_arg=domain=DOMAIN&path=PATH&admin=USER&language=fr&is_public=1&password=pass&
|
||||||
|
|
|
@ -15,8 +15,8 @@
|
||||||
#--------------------------------------------------------------------
|
#--------------------------------------------------------------------
|
||||||
app.baseURL="https://__DOMAIN__"
|
app.baseURL="https://__DOMAIN__"
|
||||||
app.mediaBaseURL="https://__DOMAIN__"
|
app.mediaBaseURL="https://__DOMAIN__"
|
||||||
app.adminGateway="cp-admin"
|
admin.gateway="cp-admin"
|
||||||
app.authGateway="cp-auth"
|
auth.gateway="cp-auth"
|
||||||
|
|
||||||
#--------------------------------------------------------------------
|
#--------------------------------------------------------------------
|
||||||
# Database configuration
|
# Database configuration
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
SOURCE_URL=https://code.podlibre.org/podlibre/castopod-host/uploads/0ee7cea7e68cd518c373372edfdd5d9f/castopod-host-1.0.0-alpha.80.zip
|
SOURCE_URL=https://code.podlibre.org/podlibre/castopod-host/uploads/480a03db991976b229ae7bedfc990999/castopod-host-1.0.0-beta.8.zip
|
||||||
SOURCE_SUM=30cab549e230bcd57f93df392ecff5fa8daa6545aa855195b280eed48150e43d
|
SOURCE_SUM=55150151353d10073e8d04513403d5b8e9ba87b59d1041199127590322453b75
|
||||||
SOURCE_SUM_PRG=sha256sum
|
SOURCE_SUM_PRG=sha256sum
|
||||||
SOURCE_FORMAT=zip
|
SOURCE_FORMAT=zip
|
||||||
SOURCE_IN_SUBDIR=true
|
SOURCE_IN_SUBDIR=true
|
||||||
|
|
|
@ -1 +1,2 @@
|
||||||
* * * * * __USER__ /usr/bin/php__PHPVERSION__ __FINALPATH__/public/index.php scheduled-activities
|
* * * * * __USER__ /usr/bin/php__PHPVERSION__ __FINALPATH__/public/index.php scheduled-activities
|
||||||
|
* * * * * __USER__ /usr/bin/php__PHPVERSION__ __FINALPATH__/public/index.php scheduled-video-clips
|
Binary file not shown.
Before Width: | Height: | Size: 297 KiB |
BIN
doc/screenshots/screenshot.png
Normal file
BIN
doc/screenshots/screenshot.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 127 KiB |
|
@ -6,11 +6,11 @@
|
||||||
"en": "Hosting platform made for podcasters",
|
"en": "Hosting platform made for podcasters",
|
||||||
"fr": "Plateforme d'hébergement conçue pour les podcasteurs"
|
"fr": "Plateforme d'hébergement conçue pour les podcasteurs"
|
||||||
},
|
},
|
||||||
"version": "1.0.0-80~ynh1",
|
"version": "1.0.0-88~ynh1",
|
||||||
"url": "https://podlibre.org/",
|
"url": "https://castopod.org/",
|
||||||
"upstream": {
|
"upstream": {
|
||||||
"license": "GPL-3.0-only",
|
"license": "GPL-3.0-only",
|
||||||
"website": "https://podlibre.org/",
|
"website": "https://castopod.org/",
|
||||||
"demo": "https://podcast.podlibre.org/@podlibre_fr",
|
"demo": "https://podcast.podlibre.org/@podlibre_fr",
|
||||||
"admindoc": "https://podlibre.org/create-a-podcast-in-3mn-with-castopod/",
|
"admindoc": "https://podlibre.org/create-a-podcast-in-3mn-with-castopod/",
|
||||||
"code": "https://code.podlibre.org/podlibre/castopod-host"
|
"code": "https://code.podlibre.org/podlibre/castopod-host"
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
|
|
||||||
YNH_PHP_VERSION="8.0"
|
YNH_PHP_VERSION="8.0"
|
||||||
|
|
||||||
pkg_dependencies="php${YNH_PHP_VERSION}-mysql php${YNH_PHP_VERSION}-gd php${YNH_PHP_VERSION}-intl php${YNH_PHP_VERSION}-curl php${YNH_PHP_VERSION}-mbstring php${YNH_PHP_VERSION}-json php${YNH_PHP_VERSION}-xml php${YNH_PHP_VERSION}-mysqlnd"
|
pkg_dependencies="ffmpeg php${YNH_PHP_VERSION}-mysql php${YNH_PHP_VERSION}-gd php${YNH_PHP_VERSION}-intl php${YNH_PHP_VERSION}-curl php${YNH_PHP_VERSION}-mbstring php${YNH_PHP_VERSION}-json php${YNH_PHP_VERSION}-xml php${YNH_PHP_VERSION}-mysqlnd"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# PERSONAL HELPERS
|
# PERSONAL HELPERS
|
||||||
|
|
|
@ -57,7 +57,7 @@ set__fpm_footprint() {
|
||||||
}
|
}
|
||||||
|
|
||||||
set__free_footprint() {
|
set__free_footprint() {
|
||||||
if [ "$fpm_footprint" = "specific" ]
|
if [ "$fpm_footprint" == "specific" ]
|
||||||
then
|
then
|
||||||
ynh_app_setting_set --app=$app --key=fpm_footprint --value="$free_footprint"
|
ynh_app_setting_set --app=$app --key=fpm_footprint --value="$free_footprint"
|
||||||
fi
|
fi
|
||||||
|
@ -72,7 +72,7 @@ ynh_app_config_validate() {
|
||||||
|
|
||||||
if [ "${changed[fpm_usage]}" == "true" ] || [ "${changed[fpm_footprint]}" == "true" ] || [ "${changed[free_footprint]}" == "true" ]; then
|
if [ "${changed[fpm_usage]}" == "true" ] || [ "${changed[fpm_footprint]}" == "true" ] || [ "${changed[free_footprint]}" == "true" ]; then
|
||||||
# If fpm_footprint is set to 'specific', use $free_footprint value.
|
# If fpm_footprint is set to 'specific', use $free_footprint value.
|
||||||
if [ "$fpm_footprint" = "specific" ]
|
if [ "$fpm_footprint" == "specific" ]
|
||||||
then
|
then
|
||||||
fpm_footprint=$free_footprint
|
fpm_footprint=$free_footprint
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -24,7 +24,7 @@ domain=$YNH_APP_ARG_DOMAIN
|
||||||
path_url="/"
|
path_url="/"
|
||||||
is_public=$YNH_APP_ARG_IS_PUBLIC
|
is_public=$YNH_APP_ARG_IS_PUBLIC
|
||||||
admin=$YNH_APP_ARG_ADMIN
|
admin=$YNH_APP_ARG_ADMIN
|
||||||
password=$YNH_APP_ARG_PASSWORD
|
password="$YNH_APP_ARG_PASSWORD"
|
||||||
email=$(ynh_user_get_info --username=$admin --key=mail)
|
email=$(ynh_user_get_info --username=$admin --key=mail)
|
||||||
phpversion=$YNH_PHP_VERSION
|
phpversion=$YNH_PHP_VERSION
|
||||||
|
|
||||||
|
@ -50,6 +50,7 @@ ynh_app_setting_set --app=$app --key=domain --value=$domain
|
||||||
ynh_app_setting_set --app=$app --key=path --value=$path_url
|
ynh_app_setting_set --app=$app --key=path --value=$path_url
|
||||||
ynh_app_setting_set --app=$app --key=admin --value=$admin
|
ynh_app_setting_set --app=$app --key=admin --value=$admin
|
||||||
ynh_app_setting_set --app=$app --key=phpversion --value=$phpversion
|
ynh_app_setting_set --app=$app --key=phpversion --value=$phpversion
|
||||||
|
ynh_app_setting_set --app=$app --key=password --value="$password"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# INSTALL DEPENDENCIES
|
# INSTALL DEPENDENCIES
|
||||||
|
|
|
@ -30,14 +30,6 @@ ynh_script_progression --message="Removing the MySQL database..." --weight=1
|
||||||
# Remove a database if it exists, along with the associated user
|
# Remove a database if it exists, along with the associated user
|
||||||
ynh_mysql_remove_db --db_user=$db_user --db_name=$db_name
|
ynh_mysql_remove_db --db_user=$db_user --db_name=$db_name
|
||||||
|
|
||||||
#=================================================
|
|
||||||
# REMOVE DEPENDENCIES
|
|
||||||
#=================================================
|
|
||||||
ynh_script_progression --message="Removing dependencies..." --weight=1
|
|
||||||
|
|
||||||
# Remove metapackage and its dependencies
|
|
||||||
ynh_remove_app_dependencies
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# REMOVE THE REDIS DATABASE
|
# REMOVE THE REDIS DATABASE
|
||||||
#=================================================
|
#=================================================
|
||||||
|
@ -69,6 +61,14 @@ ynh_script_progression --message="Removing PHP-FPM configuration..." --weight=2
|
||||||
# Remove the dedicated PHP-FPM config
|
# Remove the dedicated PHP-FPM config
|
||||||
ynh_remove_fpm_config
|
ynh_remove_fpm_config
|
||||||
|
|
||||||
|
#=================================================
|
||||||
|
# REMOVE DEPENDENCIES
|
||||||
|
#=================================================
|
||||||
|
ynh_script_progression --message="Removing dependencies..." --weight=1
|
||||||
|
|
||||||
|
# Remove metapackage and its dependencies
|
||||||
|
ynh_remove_app_dependencies
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# REMOVE VARIOUS FILES
|
# REMOVE VARIOUS FILES
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -83,6 +83,13 @@ if ynh_legacy_permissions_exists; then
|
||||||
ynh_app_setting_delete --app=$app --key=is_public
|
ynh_app_setting_delete --app=$app --key=is_public
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
#=================================================
|
||||||
|
# UPGRADE DEPENDENCIES
|
||||||
|
#=================================================
|
||||||
|
ynh_script_progression --message="Upgrading dependencies..." --weight=1
|
||||||
|
|
||||||
|
ynh_install_app_dependencies $pkg_dependencies
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# CREATE DEDICATED USER
|
# CREATE DEDICATED USER
|
||||||
#=================================================
|
#=================================================
|
||||||
|
@ -102,7 +109,7 @@ then
|
||||||
ynh_secure_remove --file="$final_path/app"
|
ynh_secure_remove --file="$final_path/app"
|
||||||
ynh_secure_remove --file="$final_path/public/assets"
|
ynh_secure_remove --file="$final_path/public/assets"
|
||||||
# Download, check integrity, uncompress and patch the source from app.src
|
# Download, check integrity, uncompress and patch the source from app.src
|
||||||
ynh_setup_source --dest_dir="$final_path"
|
ynh_setup_source --dest_dir="$final_path" --keep="$final_path/.env"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
chmod 750 "$final_path"
|
chmod 750 "$final_path"
|
||||||
|
@ -117,13 +124,6 @@ ynh_script_progression --message="Upgrading NGINX web server configuration..." -
|
||||||
# Create a dedicated NGINX config
|
# Create a dedicated NGINX config
|
||||||
ynh_add_nginx_config
|
ynh_add_nginx_config
|
||||||
|
|
||||||
#=================================================
|
|
||||||
# UPGRADE DEPENDENCIES
|
|
||||||
#=================================================
|
|
||||||
ynh_script_progression --message="Upgrading dependencies..." --weight=1
|
|
||||||
|
|
||||||
ynh_install_app_dependencies $pkg_dependencies
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# PHP-FPM CONFIGURATION
|
# PHP-FPM CONFIGURATION
|
||||||
#=================================================
|
#=================================================
|
||||||
|
@ -135,11 +135,11 @@ ynh_add_fpm_config --phpversion=$phpversion --usage=$fpm_usage --footprint=$fpm_
|
||||||
#=================================================
|
#=================================================
|
||||||
# CONFIGURE CASTOPOD
|
# CONFIGURE CASTOPOD
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Configuring Castopod..." --weight=1
|
# ynh_script_progression --message="Configuring Castopod..." --weight=1
|
||||||
|
|
||||||
ynh_add_config --template="../conf/.env.example" --destination="$final_path/.env"
|
# ynh_add_config --template="../conf/.env.example" --destination="$final_path/.env"
|
||||||
chmod 600 $final_path/.env
|
# chmod 600 $final_path/.env
|
||||||
chown $app:www-data "$final_path/.env"
|
# chown $app:www-data "$final_path/.env"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# SETUP CRON
|
# SETUP CRON
|
||||||
|
|
Loading…
Add table
Reference in a new issue