Skip to content

Commit

Permalink
Merge pull request #191 from Masaya-A/Revert-firstrun
Browse files Browse the repository at this point in the history
Revert firstrun stuff
  • Loading branch information
austinsonger authored May 31, 2021
2 parents 9f30ae4 + cb576a5 commit e97bf80
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 e97bf80

Please sign in to comment.