update_rss-bridge.sh 476 B

1234567
  1. #!/bin/bash
  2. cd /root
  3. wget https://github.com/Rss-Bridge/rss-bridge/archive/master.zip
  4. unzip master.zip
  5. find rss-bridge-master/ -name "*.php" -exec sed -i "s/parse_ini_file(\([^,]*\),.*)/parse_ini_string(file_get_contents(\1), true, INI_SCANNER_TYPED)/g" {} +
  6. lftp -c "set sftp:auto-confirm yes; open sftp://[REDACTED]; mirror -Rev rss-bridge-master/ [REMOTE]/ --only-newer --parallel=10 -X config.ini.php -X whitelist.default.txt -X cache/"
  7. rm -r rss-bridge-master/ master.zip