Skip to content

Commit

Permalink
Don't flip "installed" config var off when adjusting other variables
Browse files Browse the repository at this point in the history
  • Loading branch information
wang-arthur committed Jul 24, 2024
1 parent aa0db30 commit 822e0e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion root/usr/local/bin/ojs-variable
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ echo " config file: $OJS_CONF"
#Workarround, to avoid issues when config is a volume:
cp $OJS_CONF /tmp/config.inc.php
sed -i -e "s/^${1} =.*/${1} = ${2}/" /tmp/ojs.config.inc.php
sed -i '/^installed/c\installed = Off' /tmp/config.inc.php
# sed -i '/^installed/c\installed = Off' /tmp/config.inc.php
cp -f /tmp/config.inc.php $OJS_CONF

echo "[OJS Variable] Variable set."

0 comments on commit 822e0e2

Please sign in to comment.