Skip to content

Commit

Permalink
cleaning up the startup to reduce errors ...
Browse files Browse the repository at this point in the history
  • Loading branch information
immauss committed Oct 22, 2024
1 parent 16517bb commit 6429e27
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions scripts/fs-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -146,11 +146,11 @@ fi

if ! [ -L /etc/gvm ]; then
echo "Handling config files"
cp -rpn /etc/gvm/* /usr/local/etc/gvm/* /data/local-etc/gvm/
cp -rpn /etc/gvm/* /usr/local/etc/gvm/* /data/local-etc/gvm/ 2> /dev/null
rm -rf /etc/gvm /usr/local/etc/gvm
ln -s /data/local-etc/gvm /etc/gvm
ln -s /data/local-etc/gvm /usr/local/etc/gvm
cp -rpn /etc/openvas/* /usr/local/etc/openvas/* /data/local-etc/openvas/
cp -rpn /etc/openvas/* /usr/local/etc/openvas/* /data/local-etc/openvas/ 2> /dev/null
rm -rf /etc/openvas /usr/local/etc/openvas
ln -s /data/local-etc/openvas /etc/openvas
ln -s /data/local-etc/openvas /usr/local/etc/openvas
Expand Down
6 changes: 5 additions & 1 deletion scripts/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@ else
fi

echo "Choosing container start method from:"
echo "$@"
if [ "$@" == ""] || ["$@" == " *"]; then
echo " Nothing ... so we start in the default of single container mode"
else
echo "$@"
fi
# We'll use this later to know how to check container health
echo "$1" > /usr/local/etc/running-as

Expand Down

0 comments on commit 6429e27

Please sign in to comment.