Set mariadb password for rss restore
This commit is contained in:
parent
c6bef7a77b
commit
b4b50ffc7d
|
@ -195,6 +195,10 @@ function restore_local_rss {
|
|||
rm -rf $temp_restore_dir
|
||||
fi
|
||||
fi
|
||||
|
||||
MARIADB_PASSWORD=$(${PROJECT_NAME}-pass -u root -a mariadb)
|
||||
sed -i "s|define('DB_PASS'.*|define('DB_PASS', '${MARIADB_PASSWORD}');|g" $RSS_READER_PATH/config.php
|
||||
MARIADB_PASSWORD=
|
||||
}
|
||||
|
||||
function backup_remote_rss {
|
||||
|
@ -253,6 +257,11 @@ function restore_remote_rss {
|
|||
if [ -d /root/tempttrss ]; then
|
||||
rm -rf /root/tempttrss
|
||||
fi
|
||||
|
||||
MARIADB_PASSWORD=$(${PROJECT_NAME}-pass -u root -a mariadb)
|
||||
sed -i "s|define('DB_PASS'.*|define('DB_PASS', '${MARIADB_PASSWORD}');|g" $RSS_READER_PATH/config.php
|
||||
MARIADB_PASSWORD=
|
||||
|
||||
echo $"Restore of ttrss complete"
|
||||
fi
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue