first commit with existing files
This commit is contained in:
18
ncupdate_deprecated/files/https.sh
Normal file
18
ncupdate_deprecated/files/https.sh
Normal file
@@ -0,0 +1,18 @@
|
||||
#!/bin/bash
|
||||
|
||||
cat profile.sh >> $HOME/.bashrc
|
||||
apt update
|
||||
apt install smbclient apache2 openssl nano vim -y
|
||||
a2enmod ssl
|
||||
a2enmod rewrite
|
||||
cat /ncupdate/apache2.conf >> /etc/apache2/apache2.conf
|
||||
mkdir /etc/apache2/certs
|
||||
echo ""
|
||||
echo ""
|
||||
echo "Write the nextcloud's URL to the COMMON NAME!"
|
||||
echo "Leave the other fields blank"
|
||||
echo ""
|
||||
echo -n "Press ENTER to countinue..."
|
||||
read x
|
||||
openssl req -new -newkey rsa:4096 -x509 -sha256 -days 365 -nodes -out /etc/apache2/certs/apache.crt -keyout /etc/apache2/certs/apache.key
|
||||
cat /ncupdate/00-default.conf >> /etc/apache2/sites-enabled/000-default.conf
|
||||
Reference in New Issue
Block a user