Skip to content

Commit

Permalink
Revert firstrun stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Masaya-A authored May 31, 2021
1 parent 9f30ae4 commit cb576a5
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions scripts/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ if [ ! -h /etc/ssh ]; then
ln -s /data/ssh /etc/ssh
fi

if [ ! -f "/data/firstrun" ]; then
if [ ! -f "/firstrun" ]; then
echo "Running first start configuration..."

ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
Expand All @@ -90,7 +90,11 @@ if [ ! -f "/data/firstrun" ]; then
chown gvm:gvm -R /usr/local/var/log/gvm

chown gvm:gvm -R /usr/local/var/run


touch /firstrun
fi

if [ ! -f "/data/firstrun" ]; then
echo "Creating Greenbone Vulnerability Manager database"
su -c "createuser -DRS gvm" postgres
su -c "createdb -O gvm gvmd" postgres
Expand Down

0 comments on commit cb576a5

Please sign in to comment.