Skip to content

Commit

Permalink
cleanup: dont disable ssh in extras, only in nextcloudpi.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
nachoparker committed Sep 4, 2017
1 parent 00e8c77 commit 4c70d15
Show file tree
Hide file tree
Showing 12 changed files with 2 additions and 30 deletions.
2 changes: 0 additions & 2 deletions etc/nextcloudpi-config.d/NFS.sh
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,6 @@ cleanup()
apt-get autoremove -y
apt-get clean
rm /var/lib/apt/lists/* -r
rm -f /home/pi/.bash_history
systemctl disable ssh
}

# License
Expand Down
2 changes: 0 additions & 2 deletions etc/nextcloudpi-config.d/dnsmasq.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,6 @@ cleanup()
apt-get autoremove -y
apt-get clean
rm /var/lib/apt/lists/* -r
rm -f /home/pi/.bash_history
systemctl disable ssh
}

# License
Expand Down
2 changes: 0 additions & 2 deletions etc/nextcloudpi-config.d/fail2ban.sh
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,6 @@ cleanup()
apt-get autoremove -y
apt-get clean
rm /var/lib/apt/lists/* -r
rm -f /home/pi/.bash_history
systemctl disable ssh
}

# License
Expand Down
2 changes: 0 additions & 2 deletions etc/nextcloudpi-config.d/letsencrypt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,6 @@ cleanup()
apt-get autoremove -y
apt-get clean
rm /var/lib/apt/lists/* -r
rm -f /home/pi/.bash_history
systemctl disable ssh
}

# License
Expand Down
2 changes: 0 additions & 2 deletions etc/nextcloudpi-config.d/modsecurity.sh
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,6 @@ cleanup()
apt-get autoremove -y
apt-get clean
rm /var/lib/apt/lists/* -r
rm -f /home/pi/.bash_history
systemctl disable ssh
}

# License
Expand Down
2 changes: 0 additions & 2 deletions etc/nextcloudpi-config.d/nc-automount.sh
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,6 @@ cleanup()
apt-get autoremove -y
apt-get clean
rm /var/lib/apt/lists/* -r
rm -f /home/pi/.bash_history
systemctl disable ssh
}


Expand Down
2 changes: 0 additions & 2 deletions etc/nextcloudpi-config.d/nc-forward-ports.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,6 @@ cleanup()
apt-get autoremove -y
apt-get clean
rm /var/lib/apt/lists/* -r
rm -f /home/pi/.bash_history
systemctl disable ssh
}

# License
Expand Down
6 changes: 1 addition & 5 deletions etc/nextcloudpi-config.d/nc-nextcloud.sh
Original file line number Diff line number Diff line change
Expand Up @@ -183,12 +183,8 @@ EOF
echo "Don't forget to run nc-init"
}

cleanup()
{
rm -f /home/pi/.bash_history
cleanup(){ :; }

systemctl disable ssh
}
# License
#
# This script is free software; you can redistribute it and/or modify it
Expand Down
2 changes: 0 additions & 2 deletions etc/nextcloudpi-config.d/nc-wifi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,6 @@ cleanup()
apt-get autoremove -y
apt-get clean
rm /var/lib/apt/lists/* -r
rm -f /home/pi/.bash_history
systemctl disable ssh
}

# License
Expand Down
6 changes: 1 addition & 5 deletions etc/nextcloudpi-config.d/no-ip.sh
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,7 @@ configure()
sudo -u www-data php occ config:system:set overwrite.cli.url --value=https://"$DOMAIN_"
}

cleanup()
{
rm -f /home/pi/.bash_history
systemctl disable ssh
}
cleanup() { :; }

# License
#
Expand Down
2 changes: 0 additions & 2 deletions etc/nextcloudpi-config.d/samba.sh
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,6 @@ cleanup()
apt-get autoremove -y
apt-get clean
rm /var/lib/apt/lists/* -r
rm -f /home/pi/.bash_history
systemctl disable ssh
}

# License
Expand Down
2 changes: 0 additions & 2 deletions etc/nextcloudpi-config.d/unattended-upgrades.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,6 @@ cleanup()
apt-get autoremove -y
apt-get clean
rm /var/lib/apt/lists/* -r
rm -f /home/pi/.bash_history
systemctl disable ssh
}

# License
Expand Down

0 comments on commit 4c70d15

Please sign in to comment.