diff --git a/bin/hpfeeds_optin.sh b/bin/hpfeeds_optin.sh index 5310e401..fc6792bf 100755 --- a/bin/hpfeeds_optin.sh +++ b/bin/hpfeeds_optin.sh @@ -67,6 +67,24 @@ mySECRET="secret" myFORMAT="json" } +function fuWRITETOFILE () { +if [ -f '/data/ews/conf/hpfeeds.cfg' ]; then + echo "Creating backup of current config" + mv /data/ews/conf/hpfeeds.cfg /data/ews/conf/hpfeeds.cfg.old +fi +echo "Storing new config in /data/ews/conf/hpfeeds.cfg" +cat >> /data/ews/conf/hpfeeds.cfg <