Apply trim

This commit is contained in:
Bob Mottram 2016-02-10 15:32:05 +00:00
parent 7895ff7051
commit c62d9cbcf3
1 changed files with 1 additions and 1 deletions

View File

@ -8949,7 +8949,7 @@ function expire_gnu_social_posts {
echo '' >> $gnusocial_expire_script echo '' >> $gnusocial_expire_script
echo '$oldate=date(("Y-m-d"), strtotime("-3 months"));' >> $gnusocial_expire_script echo '$oldate=date(("Y-m-d"), strtotime("-3 months"));' >> $gnusocial_expire_script
echo '$username="root";' >> $gnusocial_expire_script echo '$username="root";' >> $gnusocial_expire_script
echo "\$password=file_get_contents(\"$DATABASE_PASSWORD_FILE\");" >> $gnusocial_expire_script echo "\$password=trim(file_get_contents(\"$DATABASE_PASSWORD_FILE\"));" >> $gnusocial_expire_script
echo '$database="gnusocial";' >> $gnusocial_expire_script echo '$database="gnusocial";' >> $gnusocial_expire_script
echo '' >> $gnusocial_expire_script echo '' >> $gnusocial_expire_script
echo 'if (!$link = mysql_connect("localhost", $username, $password)) {' >> $gnusocial_expire_script echo 'if (!$link = mysql_connect("localhost", $username, $password)) {' >> $gnusocial_expire_script