1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/castopod_ynh.git synced 2024-09-03 18:16:14 +02:00
This commit is contained in:
ericgaspar 2023-08-23 22:57:07 +02:00
parent 7e187b23be
commit eaa72aaa95
2 changed files with 19 additions and 1 deletions

14
conf/v1.5.2.sql Normal file
View file

@ -0,0 +1,14 @@
-- change Twitter to X
INSERT INTO `cp_platforms` (`slug`, `type`, `label`, `home_url`, `submit_url`) VALUES
('x', 'social', 'X', 'https://x.com/', 'https://x.com/i/flow/signup');
UPDATE `cp_podcasts_platforms`
SET `platform_slug` = 'x'
WHERE `platform_slug` = 'twitter';
DELETE FROM `cp_platforms` WHERE `slug` = 'twitter';
-- add buymeacoffee and kofi as funding platforms
INSERT INTO `cp_platforms` (`slug`, `type`, `label`, `home_url`, `submit_url`) VALUES
('buymeacoffee', 'funding', 'Buy Me a Coffee', 'https://www.buymeacoffee.com/', 'https://www.buymeacoffee.com/signup'),
('kofi', 'funding', 'Ko-fi', 'https://ko-fi.com/', 'https://ko-fi.com/account/register');

View file

@ -75,7 +75,11 @@ chmod 644 "/etc/cron.d/$app"
#=================================================
# CONFIGURE CASTOPOD
#=================================================
# ynh_script_progression --message="Configuring Castopod..." --weight=1
ynh_script_progression --message="Configuring Castopod database..." --weight=1
ynh_mysql_connect_as --user=$db_user --password=$db_pwd --database=$db_name < v1.5.2.sql
#ynh_script_progression --message="Configuring Castopod..." --weight=1
# ynh_add_config --template="../conf/.env.example" --destination="$install_dir/.env"
# chmod 600 $install_dir/.env