fixed oopsie
This commit is contained in:
20
setup.sh
20
setup.sh
@@ -17,10 +17,10 @@ mkdir -p /vhome
|
||||
mkdir /tools
|
||||
|
||||
#setup tools
|
||||
wget -t7 "$repo"/raw/branch/"$branch"/Tools/aclutil -O /tools/aclutil
|
||||
wget -t7 "$repo"/raw/branch/"$branch"/Tools/adduserutil -O /tools/adduserutil
|
||||
wget -t7 "$repo"/raw/branch/"$branch"/Tools/deluserutil -O /tools/deluserutil
|
||||
wget -t7 "$repo"/raw/branch/"$branch"/Tools/ez-aclutil -O /tools/ez-aclutil
|
||||
wget -t7 "$mrepo"/raw/mbranch/"$mbranch"/Tools/aclutil -O /tools/aclutil
|
||||
wget -t7 "$mrepo"/raw/mbranch/"$mbranch"/Tools/adduserutil -O /tools/adduserutil
|
||||
wget -t7 "$mrepo"/raw/mbranch/"$mbranch"/Tools/deluserutil -O /tools/deluserutil
|
||||
wget -t7 "$mrepo"/raw/mbranch/"$mbranch"/Tools/ez-aclutil -O /tools/ez-aclutil
|
||||
chmod 700 /tools/deluserutil
|
||||
chmod 700 /tools/adduserutil
|
||||
chmod 700 /tools/aclutil
|
||||
@@ -28,17 +28,17 @@ chmod 700 /tools/ez-aclutil
|
||||
|
||||
#SSH Config
|
||||
sed -i -e '/Subsystem\ssftp/c\Subsystem sftp internal-sftp' sshd_config
|
||||
curl --silent --show-error "$repo"/raw/branch/"$branch"/config/sshd_append.conf >>/etc/ssh/sshd_config
|
||||
curl --silent --show-error "$mrepo"/raw/mbranch/"$mbranch"/config/sshd_append.conf >>/etc/ssh/sshd_config
|
||||
|
||||
#rssh Config
|
||||
curl --silent --show-error "$repo"/raw/branch/"$branch"/config/rssh_append.conf >>/etc/rssh.conf
|
||||
curl --silent --show-error "$mrepo"/raw/mbranch/"$mbranch"/config/rssh_append.conf >>/etc/rssh.conf
|
||||
|
||||
#vsftp Config
|
||||
openssl req -new -x509 -nodes -days 3650 -newkey rsa:2048 -keyout /etc/ssl/private/vsftpd.pem -out /etc/ssl/private/vsftpd.pem -subj "/C=NL/ST=Gelderland/L=Arnhem/O=ICT Maatwerk B.V./CN=$(hostname -f)"
|
||||
wget -t7 "$repo"/raw/branch/"$branch"/config/vsftpd.conf -O /etc/vsftpd.conf
|
||||
wget -t7 "$mrepo"/raw/mbranch/"$mbranch"/config/vsftpd.conf -O /etc/vsftpd.conf
|
||||
|
||||
#sudo Config
|
||||
wget -t7 "$repo"/raw/branch/"$branch"/config/sudo.conf -O /etc/sudoers.d/BCKadmin
|
||||
wget -t7 "$mrepo"/raw/mbranch/"$mbranch"/config/sudo.conf -O /etc/sudoers.d/BCKadmin
|
||||
|
||||
#Setup grequalizer
|
||||
git clone https://github.com/lpirl/grequalizer.git /opt/grequalizer
|
||||
@@ -46,8 +46,8 @@ mkdir /opt/grequalizer/conf/
|
||||
echo "/opt/grequalizer" > /opt/grequalizer/conf/files_to_chroots.txt
|
||||
echo "/usr/bin/rsync" > /opt/grequalizer/conf/binaries_to_chroots.txt
|
||||
echo "/usr/bin/rssh" >> /opt/grequalizer/conf/binaries_to_chroots.txt
|
||||
wget -t7 "$repo"/raw/branch/"$branch"/config/grequalizer-sftp.conf -O /opt/grequalizer/conf/grequalizer-sftp.conf
|
||||
wget -t7 "$repo"/raw/branch/"$branch"/config/grequalizer-ftp.conf -O /opt/grequalizer/conf/grequalizer-ftp.conf
|
||||
wget -t7 "$mrepo"/raw/mbranch/"$mbranch"/config/grequalizer-sftp.conf -O /opt/grequalizer/conf/grequalizer-sftp.conf
|
||||
wget -t7 "$mrepo"/raw/mbranch/"$mbranch"/config/grequalizer-ftp.conf -O /opt/grequalizer/conf/grequalizer-ftp.conf
|
||||
|
||||
#UFW Config
|
||||
##FTP
|
||||
|
||||
Reference in New Issue
Block a user