mirror of
https://github.com/YunoHost-Apps/rss-bridge_ynh.git
synced 2024-09-03 20:25:51 +02:00
Whitelist all bridges
This commit is contained in:
parent
42b77cb07e
commit
4955035085
1 changed files with 1 additions and 9 deletions
|
@ -38,15 +38,7 @@ ynh_add_nginx_config
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Configuring RSS-Bridge..." --weight=1
|
ynh_script_progression --message="Configuring RSS-Bridge..." --weight=1
|
||||||
|
|
||||||
# Remove faulty bridge
|
echo \* > $install_dir/whitelist.txt
|
||||||
ynh_secure_remove --file=$install_dir/bridges/PepperBridgeAbstract.php
|
|
||||||
ynh_secure_remove --file=$install_dir/bridges/DealabsBridge.php
|
|
||||||
ynh_secure_remove --file=$install_dir/bridges/HotUKDealsBridge.php
|
|
||||||
|
|
||||||
# Enable every bridge
|
|
||||||
for i in $install_dir/bridges/*.php ; do
|
|
||||||
echo $(basename $i) | sed "s|Bridge.php$||g" | tee -a $install_dir/whitelist.txt
|
|
||||||
done
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# END OF SCRIPT
|
# END OF SCRIPT
|
||||||
|
|
Loading…
Reference in a new issue