Skip to content

Commit

Permalink
Fixed DB_TYPE scenario migration
Browse files Browse the repository at this point in the history
  • Loading branch information
smaarn committed Nov 15, 2021
1 parent 0c1e375 commit d23eae8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spk/tt-rss/src/service-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ service_postupgrade ()
if [ "${SPK_REV}" -lt "14" ]
then
# Parse old configuration and save to new config format
sed -i -e "s|define('DB_TYPE', \(.*\));|putenv('TTRSS_DB_TYPE=\1');|" \
sed -i -e "s|define('DB_TYPE', '\(.*\)');|putenv('TTRSS_DB_TYPE=\1');|" \
-e "s|define('DB_HOST', '\(.*\)');|putenv('TTRSS_DB_HOST=\1');|" \
-e "s|define('DB_USER', '\(.*\)');|putenv('TTRSS_DB_USER=\1');|" \
-e "s|define('DB_NAME', '\(.*\)');|putenv('TTRSS_DB_NAME=\1');|" \
Expand Down

0 comments on commit d23eae8

Please sign in to comment.