mirror of
https://github.com/Ysurac/openmptcprouter-vps.git
synced 2025-03-09 15:50:00 +00:00
Update do VPS script 0.993
This commit is contained in:
parent
616cb5c494
commit
5cd78a9401
8 changed files with 59 additions and 17 deletions
|
@ -3,8 +3,8 @@ set -e
|
|||
umask 0022
|
||||
export LC_ALL=C
|
||||
|
||||
rm -f /var/lib/dpkg/lock
|
||||
rm -f /var/cache/apt/archives/lock
|
||||
#rm -f /var/lib/dpkg/lock
|
||||
#rm -f /var/cache/apt/archives/lock
|
||||
|
||||
# Check Linux version
|
||||
if test -f /etc/os-release ; then
|
||||
|
@ -38,11 +38,14 @@ apt-get -y install dirmngr patch rename curl
|
|||
# Rename bzImage to vmlinuz, needed when custom kernel was used
|
||||
cd /boot
|
||||
rename 's/^bzImage/vmlinuz/s' * >/dev/null 2>&1
|
||||
rm -f /var/lib/dpkg/lock
|
||||
rm -f /var/cache/apt/archives/lock
|
||||
rm /etc/kernel-img.conf
|
||||
#rm -f /var/lib/dpkg/lock
|
||||
#rm -f /var/cache/apt/archives/lock
|
||||
rm -f /etc/kernel-img.conf
|
||||
echo "Install all"
|
||||
DEBIAN_FRONTEND=noninteractive apt-get -y --force-yes -o Dpkg::Options::="--force-overwrite" -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" install omr-vps
|
||||
DEBIAN_FRONTEND=noninteractive apt-get -y -o Dpkg::Options::="--force-overwrite" -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" install omr-vps
|
||||
|
||||
systemctl -q enable shorewall
|
||||
systemctl -q enable shorewall6
|
||||
|
||||
# Change SSH port to 65222
|
||||
sed -i 's:#Port 22:Port 65222:g' /etc/ssh/sshd_config
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue