Skip to content

Commit

Permalink
[api] enforce mysql update on every boot for now to be on the safe side
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianschroeter committed Dec 5, 2011
1 parent c537c0d commit 1c358d3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dist/obsstoragesetup
Expand Up @@ -270,8 +270,6 @@ case "$1" in

# Only used if there is a local BSConfig
if [ -e /usr/lib/obs/server/BSConfig.pm ]; then
# We try out more entropy generators atm, so lets always enable signing for now
# if [ -e /dev/hw_random -o -e /dev/hwrng ]; then
# create default gpg key if not existing
if [ ! -e /obs/obs-default-gpg.asc ] && grep -q "^our \$keyfile.*/obs/obs-default-gpg.asc.;$" /usr/lib/obs/server/BSConfig.pm; then
echo -n Generating OBS default GPG key ....
Expand Down Expand Up @@ -310,11 +308,13 @@ EOF
sed -i 's,^# \(our $sign =.*\),\1,' /usr/lib/obs/server/BSConfig.pm
sed -i 's,^# \(our $forceprojectkeys =.*\),\1,' /usr/lib/obs/server/BSConfig.pm
fi
# fi
if [ ! -e /obs/obs-default-gpg.asc ] ; then
sed -i 's,^\(our $sign =.*\),# \1,' /usr/lib/obs/server/BSConfig.pm
sed -i 's,^\(our $forceprojectkeys =.*\),# \1,' /usr/lib/obs/server/BSConfig.pm
fi

# Force mysql to update database. FIXME: only on version update
touch /obs/MySQL/.run-mysql_upgrade
fi

echo "Looking for OBS Worker Cache LVM Volume"
Expand Down

0 comments on commit 1c358d3

Please sign in to comment.