Skip to content

Commit

Permalink
update install
Browse files Browse the repository at this point in the history
  • Loading branch information
POPPIN-FUMI committed Oct 23, 2023
1 parent d93955c commit b8b03e0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
10 changes: 3 additions & 7 deletions resource/solv2/v2.1.2/install
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,9 @@ EOF
}

create_user() {
if id "solv" &>/dev/null; then
echo "User 'solv' already exists, skipping..."
else
echo "Creating user 'solv'..."
sudo adduser solv
sudo usermod -aG sudo solv
fi
echo "Creating user 'solv'..."
sudo adduser solv
sudo usermod -aG sudo solv
}

setup_firewall() {
Expand Down
4 changes: 3 additions & 1 deletion resource/solv2/v2.1.3/install
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ EOF
}

create_user() {
if id "solv" &>/dev/null; then
if getent passwd solv >/dev/null 2>&1; then
echo "User 'solv' already exists, skipping..."
else
echo "Creating user 'solv'..."
Expand All @@ -33,6 +33,8 @@ create_user() {
fi
}



setup_firewall() {
echo "Configuring firewall"
echo "yes" | sudo ufw enable
Expand Down

0 comments on commit b8b03e0

Please sign in to comment.