Skip to content

Commit c87c10a

Browse files
authored
Create Start-Script.sh
1 parent 80cc418 commit c87c10a

1 file changed

Lines changed: 10 additions & 5 deletions

File tree

Start-Script.sh

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,12 @@ done
5151

5252
if [ "$FTP" == "Ja" ]; then
5353
checkInstall vsftpd
54-
if [ "$INSTALLED" == true ]; then
55-
INSTALLED=false
56-
fi
54+
if [ "$INSTALLED" == false ]; then
55+
INSTALLED=true
5756
greenMessage "Der FTP-Server wird installiert."
5857
sleep 2
5958
apt-get install --yes vsftpd
59+
fi
6060
fi
6161

6262
#SSH-Server installieren
@@ -71,6 +71,11 @@ select SSH in "${OPTIONS[@]}"; do
7171
done
7272

7373
if [ "$SSH" == "Ja" ]; then
74-
greenMessage "Der SSH-Server wird installiert."
75-
apt-get install --yes openssh-server
74+
checkInstall openssh-server
75+
if [ "$INSTALLED" == false ]; then
76+
INSTALLED=true
77+
greenMessage "Der SSH-Server wird installiert."
78+
sleep 2
79+
apt-get install --yes openssh-server
80+
fi
7681
fi

0 commit comments

Comments
 (0)