From 84c588770c53c2e4ebd940979ad73a4d78efa783 Mon Sep 17 00:00:00 2001
From: Gil Shwartz <58849439+GShwartz@users.noreply.github.com>
Date: Wed, 1 May 2024 14:20:28 +0300
Subject: [PATCH 001/124] Add files via upload
---
installer-contrib-tweaks-preinstall.conf | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/installer-contrib-tweaks-preinstall.conf b/installer-contrib-tweaks-preinstall.conf
index ac0c19ee..1b056748 100644
--- a/installer-contrib-tweaks-preinstall.conf
+++ b/installer-contrib-tweaks-preinstall.conf
@@ -1,5 +1,5 @@
execute+=(tweaks/cwm-settimezone)
execute+=(tweaks/ubuntu-sysctl-swap)
-execute+=(tweaks/ubuntu-updatemirror)
+#execute+=(tweaks/ubuntu-updatemirror) # CWM-ZONE variable is N/A
execute+=(include/checkInternetConnectivity)
execute+=(tweaks/ubuntu-disable-openssl-randfile)
From a38ac1811ecdaf15d7d6562fda45b55b06fa6dbf Mon Sep 17 00:00:00 2001
From: Gil Shwartz <58849439+GShwartz@users.noreply.github.com>
Date: Wed, 1 May 2024 14:21:13 +0300
Subject: [PATCH 002/124] Add files via upload
---
tweaks/ubuntu-updateos | 15 +++++++++------
1 file changed, 9 insertions(+), 6 deletions(-)
diff --git a/tweaks/ubuntu-updateos b/tweaks/ubuntu-updateos
index 9011de7d..18ecf05e 100755
--- a/tweaks/ubuntu-updateos
+++ b/tweaks/ubuntu-updateos
@@ -8,13 +8,16 @@ elif [ -f "../include/startup.sh" ]; then
fi
echo "Updating and upgrading OS to latest kernel and packages" | log
-export DEBIAN_FRONTEND=noninteractive
-export DEBIAN_PRIORITY=critical
+# NOTE: since the kamatera mirror is faulty the update process is faulty from that stage on.
+# without these changes, certine packages related to nginx runtime will be unavailable.
+
+#export DEBIAN_FRONTEND=noninteractive
+#export DEBIAN_PRIORITY=critical
apt update -qy | log
-apt upgrade -qy -o "Dpkg::Options::=--force-confdef" -o "Dpkg::Options::=--force-confold" | log
-apt autoclean -qy | log
-apt upgrade -y | log
-apt autoremove -y | log
+#apt upgrade -qy -o "Dpkg::Options::=--force-confdef" -o "Dpkg::Options::=--force-confold" | log
+#apt autoclean -qy | log
+#apt upgrade -y | log
+#apt autoremove -y | log
# Clean up old journalctl logs
echo "Cleaning up old journalctl logs" | log
From 667f62f10b2be47de31fba6e8f542b423cf054ea Mon Sep 17 00:00:00 2001
From: Gil Shwartz <58849439+GShwartz@users.noreply.github.com>
Date: Wed, 1 May 2024 14:21:48 +0300
Subject: [PATCH 003/124] Add files via upload
---
services/nginx-latest-offirepo | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/services/nginx-latest-offirepo b/services/nginx-latest-offirepo
index 4c3e0413..f72d92f4 100755
--- a/services/nginx-latest-offirepo
+++ b/services/nginx-latest-offirepo
@@ -7,6 +7,10 @@ elif [ -f "../include/startup.sh" ]; then
fi
appPath=/var/www/html
+# Creates the dir if not exists to prevent nginx install exit 1 with 'dir not exists'
+if [ ! -d $appPath ]; then
+ mkdir -p $appPath
+fi
echo "Adding nginx repo to apt" | log
add-apt-repository -y ppa:nginx/stable | log
From c6a9f6a5ef972baadbc5ec43200a972366e35790 Mon Sep 17 00:00:00 2001
From: Gil Shwartz <58849439+GShwartz@users.noreply.github.com>
Date: Wed, 1 May 2024 14:22:13 +0300
Subject: [PATCH 004/124] Add files via upload
---
apps/redmine-5.0-offisrc-nginx | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/apps/redmine-5.0-offisrc-nginx b/apps/redmine-5.0-offisrc-nginx
index fa26892b..05680e70 100755
--- a/apps/redmine-5.0-offisrc-nginx
+++ b/apps/redmine-5.0-offisrc-nginx
@@ -46,7 +46,12 @@ EOF
echo "Installing Bundle" | log
cd $appPath
-gem install bundler --no-document
+# Components have been updated with time, for the bundler to work, these specific versions are required.
+gem install nokogiri -v 1.15.6
+gem install net-imap -v 0.3.7
+gem install rails -v 6.1.7.7
+gem install bundler -v 2.4.22
+
bundle install --without development test postgresql sqlite
bundle exec rake generate_secret_token
RAILS_ENV=production bundle exec rake db:migrate
From 14b74e91315518e38e8d9ef2372a02f1f16e3e10 Mon Sep 17 00:00:00 2001
From: Gil Shwartz <58849439+GShwartz@users.noreply.github.com>
Date: Wed, 1 May 2024 16:54:11 +0300
Subject: [PATCH 005/124] Update redmine-4.2-offisrc-nginx
---
apps/redmine-4.2-offisrc-nginx | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/apps/redmine-4.2-offisrc-nginx b/apps/redmine-4.2-offisrc-nginx
index e05c15e4..820ec4c4 100755
--- a/apps/redmine-4.2-offisrc-nginx
+++ b/apps/redmine-4.2-offisrc-nginx
@@ -46,7 +46,11 @@ EOF
echo "Installing Bundle" | log
cd $appPath
-gem install bundler --no-document
+gem install nokogiri -v 1.15.6
+gem install net-imap -v 0.3.7
+gem install rails -v 6.1.7.7
+gem install bundler -v 2.4.22
+
bundle install --without development test postgresql sqlite
bundle exec rake generate_secret_token
RAILS_ENV=production bundle exec rake db:migrate
From 3324c716f8ed657f7012734ccad451c9c5389c02 Mon Sep 17 00:00:00 2001
From: Gil Shwartz <58849439+GShwartz@users.noreply.github.com>
Date: Mon, 6 May 2024 13:31:36 +0300
Subject: [PATCH 006/124] Add files via upload
---
services/apache-latest-offirepo.sh | 45 ++++++++++++++++++++++++++++
services/ruby-latest-offirepo-dev.sh | 23 ++++++++++++++
2 files changed, 68 insertions(+)
create mode 100644 services/apache-latest-offirepo.sh
create mode 100644 services/ruby-latest-offirepo-dev.sh
diff --git a/services/apache-latest-offirepo.sh b/services/apache-latest-offirepo.sh
new file mode 100644
index 00000000..626109e3
--- /dev/null
+++ b/services/apache-latest-offirepo.sh
@@ -0,0 +1,45 @@
+#!/bin/bash
+
+if [ -f "include/startup.sh" ]; then
+ . include/startup.sh
+elif [ -f "../include/startup.sh" ]; then
+ . ../include/startup.sh
+fi
+
+installPackage apache2
+installPackage libapache2-mod-passenger
+
+cat <<_EOF_ > /etc/apache2/sites-available/redmine.conf
+
" > "$appPath/index.html" +$figletApp "Install in Progress" >> "$appPath/index.html" +echo "Please Wait. Application and services installation is in progress, the process will take a couple of minutes to complete. Thank you for your patience. Refresh the page within a couple of minutes for an updated status." >> "$appPath/index.html" +echo "" >> "$appPath/index.html" + + +tagScript success +exit 0 From 16d0dbff4a8d48eed491a1bf9eaf0a8ff40370a3 Mon Sep 17 00:00:00 2001 From: Gil Shwartz <58849439+GShwartz@users.noreply.github.com> Date: Mon, 6 May 2024 13:44:42 +0300 Subject: [PATCH 009/124] Update and rename apache-latest-offirepo.sh to apache-latest-offirepo --- services/{apache-latest-offirepo.sh => apache-latest-offirepo} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename services/{apache-latest-offirepo.sh => apache-latest-offirepo} (94%) diff --git a/services/apache-latest-offirepo.sh b/services/apache-latest-offirepo similarity index 94% rename from services/apache-latest-offirepo.sh rename to services/apache-latest-offirepo index 626109e3..9349abf6 100644 --- a/services/apache-latest-offirepo.sh +++ b/services/apache-latest-offirepo @@ -42,4 +42,4 @@ tag apache.success tag httpd.success tagScript success -exit 0 \ No newline at end of file +exit 0 From 055825ca01f0fb4e7ae34488d0793600372a9e21 Mon Sep 17 00:00:00 2001 From: Gil Shwartz <58849439+GShwartz@users.noreply.github.com> Date: Mon, 6 May 2024 13:56:38 +0300 Subject: [PATCH 010/124] Update apache-latest-offirepo From bd948b94abf84e5227590c5219931337a110b8db Mon Sep 17 00:00:00 2001 From: Gil Shwartz <58849439+GShwartz@users.noreply.github.com> Date: Mon, 6 May 2024 13:59:47 +0300 Subject: [PATCH 011/124] Delete services/apache-latest-offirepo --- services/apache-latest-offirepo | 45 --------------------------------- 1 file changed, 45 deletions(-) delete mode 100644 services/apache-latest-offirepo diff --git a/services/apache-latest-offirepo b/services/apache-latest-offirepo deleted file mode 100644 index 9349abf6..00000000 --- a/services/apache-latest-offirepo +++ /dev/null @@ -1,45 +0,0 @@ -#!/bin/bash - -if [ -f "include/startup.sh" ]; then - . include/startup.sh -elif [ -f "../include/startup.sh" ]; then - . ../include/startup.sh -fi - -installPackage apache2 -installPackage libapache2-mod-passenger - -cat <<_EOF_ > /etc/apache2/sites-available/redmine.conf -
" > "$appPath/index.html" -$figletApp "Install in Progress" >> "$appPath/index.html" -echo "Please Wait. Application and services installation is in progress, the process will take a couple of minutes to complete. Thank you for your patience. Refresh the page within a couple of minutes for an updated status." >> "$appPath/index.html" -echo "" >> "$appPath/index.html" - - -tagScript success -exit 0 From ae4aa08c37855aeabf295ff02c75114652036dcd Mon Sep 17 00:00:00 2001 From: Gil Shwartz <58849439+GShwartz@users.noreply.github.com> Date: Mon, 6 May 2024 14:00:45 +0300 Subject: [PATCH 014/124] Delete tweaks/apache-enable-ssl.sh --- tweaks/apache-enable-ssl.sh | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100644 tweaks/apache-enable-ssl.sh diff --git a/tweaks/apache-enable-ssl.sh b/tweaks/apache-enable-ssl.sh deleted file mode 100644 index 69a9df5f..00000000 --- a/tweaks/apache-enable-ssl.sh +++ /dev/null @@ -1,21 +0,0 @@ -#!/bin/bash - -if [ -f "include/startup.sh" ]; then - . include/startup.sh -elif [ -f "../include/startup.sh" ]; then - . ../include/startup.sh -fi - -checkTagExist apache.success - -echo "Installing openssl and generating certificate..." -installPackage openssl -openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/ssl/private/apache-selfsigned.key -out /etc/ssl/certs/apache-selfsigned.crt -subj "/C=US/ST=YourState/L=YourCity/O=YourOrganization/OU=IT/CN=example.com" - -descriptionAppend "SSL certificates location: /etc/ssl/certs/" -descriptionAppend " " - -tag ssl-ready.success -tagScript success - -exit 0 \ No newline at end of file From d268e433a355952250ab623738836979790ce75e Mon Sep 17 00:00:00 2001 From: Gil Shwartz <58849439+GShwartz@users.noreply.github.com> Date: Mon, 6 May 2024 14:04:57 +0300 Subject: [PATCH 015/124] Add files via upload --- tweaks/apache-enable-ssl | 45 ++++++---------------------------------- 1 file changed, 6 insertions(+), 39 deletions(-) diff --git a/tweaks/apache-enable-ssl b/tweaks/apache-enable-ssl index dc0c1301..520c23c4 100755 --- a/tweaks/apache-enable-ssl +++ b/tweaks/apache-enable-ssl @@ -1,54 +1,21 @@ #!/bin/bash -# Add this at the begining of all scripts. if [ -f "include/startup.sh" ]; then . include/startup.sh elif [ -f "../include/startup.sh" ]; then . ../include/startup.sh fi -checkTagExist apache2.success +checkTagExist apache.success -echo "Generating self-signed certificate" | log -openssl req -x509 -sha256 -newkey rsa:2048 -keyout /etc/ssl/private/server.key -out /etc/ssl/certs/server.crt -days 1024 -nodes -subj '/CN=localhost' -waitOrStop 0 "Certificate creation failed" +echo "Installing openssl and generating certificate..." +installPackage openssl +openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/ssl/private/apache-selfsigned.key -out /etc/ssl/certs/apache-selfsigned.crt -subj "/C=US/ST=YourState/L=YourCity/O=YourOrganization/OU=IT/CN=example.com" -echo "Creating SSL params" | log -cat << EOF >> /etc/apache2/conf-available/ssl-params.conf -SSLCipherSuite EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH -SSLProtocol All -SSLv2 -SSLv3 -TLSv1 -TLSv1.1 -SSLHonorCipherOrder On -Header always set X-Frame-Options DENY -Header always set X-Content-Type-Options nosniff -# Requires Apache >= 2.4 -SSLCompression off -SSLUseStapling on -SSLStaplingCache "shmcb:logs/stapling-cache(150000)" -# Requires Apache >= 2.4.11 -SSLSessionTickets Off -EOF - -echo "Tweaking SSL virtual host" | log -defaultSSL=/etc/apache2/sites-available/default-ssl.conf -sed -i '/ServerAdmin/s/webmaster@localhost/'"${ADMINEMAIL}"'/g' $defaultSSL -sed -i '/SSLCertificateFile/s/ssl-cert-snakeoil.pem/server.crt/g' $defaultSSL -sed -i '/SSLCertificateKeyFile/s/ssl-cert-snakeoil.key/server.key/g' $defaultSSL -# add ServerName + fpm install placeholder -sed -i '/
" > "$appPath/index.html" +$figletApp "Install in Progress" >> "$appPath/index.html" +echo "Please Wait. Application and services installation is in progress, the process will take a couple of minutes to complete. Thank you for your patience. Refresh the page within a couple of minutes for an updated status." >> "$appPath/index.html" +echo "" >> "$appPath/index.html" + + +tagScript success +exit 0 From df93230ad324c22e43d08ac7ad63d3079140e49b Mon Sep 17 00:00:00 2001 From: Gil Shwartz <58849439+GShwartz@users.noreply.github.com> Date: Mon, 6 May 2024 14:25:35 +0300 Subject: [PATCH 018/124] Add files via upload --- services/apache-latest-offirepo | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/services/apache-latest-offirepo b/services/apache-latest-offirepo index 62bcb3ec..4cc8d76f 100644 --- a/services/apache-latest-offirepo +++ b/services/apache-latest-offirepo @@ -6,9 +6,13 @@ elif [ -f "../include/startup.sh" ]; then . ../include/startup.sh fi +echo "Installing Apache2..." installPackage apache2 + +echo "Installing passenger module for apache2..." installPackage libapache2-mod-passenger +echo "Writing apache configuration file..." cat <<_EOF_ > /etc/apache2/sites-available/redmine.conf
" > "$appPath/index.html"
$figletApp "Install in Progress" >> "$appPath/index.html"
From 079fd6fc03954a22a2acb3b98acead8a48ab3f30 Mon Sep 17 00:00:00 2001
From: Gil Shwartz <58849439+GShwartz@users.noreply.github.com>
Date: Mon, 6 May 2024 16:17:32 +0300
Subject: [PATCH 030/124] Add files via upload
---
services/apache-latest-offirepo | 33 ++++++++++++---------------------
1 file changed, 12 insertions(+), 21 deletions(-)
diff --git a/services/apache-latest-offirepo b/services/apache-latest-offirepo
index 4cc8d76f..83797175 100644
--- a/services/apache-latest-offirepo
+++ b/services/apache-latest-offirepo
@@ -1,5 +1,6 @@
#!/bin/bash
+# Add this at the begining of all scripts.
if [ -f "include/startup.sh" ]; then
. include/startup.sh
elif [ -f "../include/startup.sh" ]; then
@@ -12,34 +13,24 @@ installPackage apache2
echo "Installing passenger module for apache2..."
installPackage libapache2-mod-passenger
+idxHTMLPath="/var/www/html"
+if [ ! -d "$idxHTMLPath" ]; then
+ mkdir -p $idxHTMLPath
+
+fi
+
echo "Writing apache configuration file..."
cat <<_EOF_ > /etc/apache2/sites-available/redmine.conf
- ServerName redmine.omc
- DocumentRoot ${REPO_DIR}/public
-
- Allow from all
- Options -MultiViews
- Require all granted
-
-
+ #ServerName www.example.com
-
-
- ServerName redmine.omc
- DocumentRoot ${REPO_DIR}/public
+ ServerAdmin webmaster@localhost
+ DocumentRoot /var/www/html
- SSLEngine on
- SSLCertificateFile /etc/ssl/certs/apache-selfsigned.crt
- SSLCertificateKeyFile /etc/ssl/private/apache-selfsigned.key
+ ErrorLog ${APACHE_LOG_DIR}/error.log
+ CustomLog ${APACHE_LOG_DIR}/access.log combined
-
- Allow from all
- Options -MultiViews
- Require all granted
-
-
_EOF_
tag apache.success
From 901020ae8275bd3a087fa9ec1c51b5ece40c50f2 Mon Sep 17 00:00:00 2001
From: Gil Shwartz <58849439+GShwartz@users.noreply.github.com>
Date: Mon, 6 May 2024 16:17:54 +0300
Subject: [PATCH 031/124] Add files via upload
From c49819269716ef8dd28d5223dd43e3dd6d4ab7f9 Mon Sep 17 00:00:00 2001
From: Gil Shwartz <58849439+GShwartz@users.noreply.github.com>
Date: Mon, 6 May 2024 16:25:12 +0300
Subject: [PATCH 032/124] Add files via upload
---
include/installInProgressHttpd-apache | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/include/installInProgressHttpd-apache b/include/installInProgressHttpd-apache
index a27e353a..7a463464 100644
--- a/include/installInProgressHttpd-apache
+++ b/include/installInProgressHttpd-apache
@@ -10,11 +10,12 @@ fi
echo "Installing Figlet..."
apt update && apt install -y figlet
-appPath=/var/www/html
+appPath=/etc/apache2/sites-available
if [ ! -d "$appPath" ]; then
echo "$appPath does not exists. Creating directory..."
mkdir -p $appPath
fi
+touch $appPath/index.html
figletApp=$(which figlet)
@@ -34,7 +35,6 @@ if [ -z "$figletApp" ]; then
exit 1
fi
-touch $appPath/index.html
echo "Adding 'Install in Progress' notice to $appPath/index.html" | log
echo "Installation Progress " > "$appPath/index.html"
$figletApp "Install in Progress" >> "$appPath/index.html"
From 01b1213e303fca96862b3af5bb9299702d846daa Mon Sep 17 00:00:00 2001
From: Gil Shwartz <58849439+GShwartz@users.noreply.github.com>
Date: Mon, 6 May 2024 16:28:55 +0300
Subject: [PATCH 033/124] Add files via upload
---
services/apache-latest-offirepo | 24 +++++++++++++++++++++---
1 file changed, 21 insertions(+), 3 deletions(-)
diff --git a/services/apache-latest-offirepo b/services/apache-latest-offirepo
index 83797175..b3fb6a72 100644
--- a/services/apache-latest-offirepo
+++ b/services/apache-latest-offirepo
@@ -20,19 +20,37 @@ if [ ! -d "$idxHTMLPath" ]; then
fi
echo "Writing apache configuration file..."
-cat <<_EOF_ > /etc/apache2/sites-available/redmine.conf
+cat <<_EOF_ > /etc/apache2/sites-available/figletIDX.conf
- #ServerName www.example.com
+ ServerName _
ServerAdmin webmaster@localhost
- DocumentRoot /var/www/html
+ DocumentRoot /etc/apache2/sites-available/
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
+
+ ServerName _
+ DocumentRoot /etc/apache2/sites-available/
+
+ SSLEngine on
+ SSLCertificateFile /etc/ssl/certs/apache-selfsigned.crt
+ SSLCertificateKeyFile /etc/ssl/private/apache-selfsigned.key
+
+
+ Allow from all
+ Options -MultiViews
+ Require all granted
+
+
_EOF_
+a2enmod ssl
+a2ensite figletIDX
+a2dissite 000-default
+
tag apache.success
tag httpd.success
tagScript success
From 9eab56cf00f4131de1fe7948a3a25f34ac2ee76f Mon Sep 17 00:00:00 2001
From: Gil Shwartz <58849439+GShwartz@users.noreply.github.com>
Date: Mon, 6 May 2024 16:29:09 +0300
Subject: [PATCH 034/124] Add files via upload
---
apps/redmine-5.1.1-offisrc-apache-rails-mysql-8.0 | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/apps/redmine-5.1.1-offisrc-apache-rails-mysql-8.0 b/apps/redmine-5.1.1-offisrc-apache-rails-mysql-8.0
index 3cd50f88..31a77b34 100644
--- a/apps/redmine-5.1.1-offisrc-apache-rails-mysql-8.0
+++ b/apps/redmine-5.1.1-offisrc-apache-rails-mysql-8.0
@@ -97,9 +97,9 @@ _EOF_
# Enable Redmine site, disable default site
echo "Enabling redmine site & disabling defaults..."
-a2enmod ssl
+#a2enmod ssl
a2ensite redmine
-a2dissite 000-default
+a2dissite figletIDX
systemctl reload apache2
# Add firewall rule
From d111de80af195c7fc527fc9f973d7626c73fab87 Mon Sep 17 00:00:00 2001
From: Gil Shwartz <58849439+GShwartz@users.noreply.github.com>
Date: Mon, 6 May 2024 16:29:50 +0300
Subject: [PATCH 035/124] Add files via upload
From 41537575c8b9c137d04c65b11bd6b1b91f05a345 Mon Sep 17 00:00:00 2001
From: Gil Shwartz <58849439+GShwartz@users.noreply.github.com>
Date: Mon, 6 May 2024 16:43:58 +0300
Subject: [PATCH 036/124] Add files via upload
---
tweaks/apache-enable-ssl | 36 +++++++++++++++++++++++++++++++++---
1 file changed, 33 insertions(+), 3 deletions(-)
diff --git a/tweaks/apache-enable-ssl b/tweaks/apache-enable-ssl
index 12cbe690..b6df1d55 100755
--- a/tweaks/apache-enable-ssl
+++ b/tweaks/apache-enable-ssl
@@ -12,11 +12,41 @@ echo "Installing openssl and generating certificate..."
installPackage openssl
openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/ssl/private/apache-selfsigned.key -out /etc/ssl/certs/apache-selfsigned.crt -subj "/C=US/ST=YourState/L=YourCity/O=YourOrganization/OU=IT/CN=example.com"
-descriptionAppend "SSL certificates location: /etc/ssl/certs/"
-descriptionAppend " "
+echo "Creating SSL params" | log
+cat << EOF >> /etc/apache2/conf-available/ssl-params.conf
+SSLCipherSuite EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH
+SSLProtocol All -SSLv2 -SSLv3 -TLSv1 -TLSv1.1
+SSLHonorCipherOrder On
+Header always set X-Frame-Options DENY
+Header always set X-Content-Type-Options nosniff
+# Requires Apache >= 2.4
+SSLCompression off
+SSLUseStapling on
+SSLStaplingCache "shmcb:logs/stapling-cache(150000)"
+# Requires Apache >= 2.4.11
+SSLSessionTickets Off
+EOF
-echo "Enabling SSL..."
+echo "Tweaking SSL virtual host" | log
+defaultSSL=/etc/apache2/sites-available/default-ssl.conf
+sed -i '/ServerAdmin/s/webmaster@localhost/'"${ADMINEMAIL}"'/g' $defaultSSL
+sed -i '/SSLCertificateFile/s/ssl-cert-snakeoil.pem/server.crt/g' $defaultSSL
+sed -i '/SSLCertificateKeyFile/s/ssl-cert-snakeoil.key/server.key/g' $defaultSSL
+# add ServerName + fpm install placeholder
+sed -i '//!b a; /ServerName/!s!\([[:blank:]]*\)\( \)!\1\tServerName localhost\n\t\t#FPM_INSTALL_PLACEHOLDER\n\1\2!}' $defaultSSL
+
+echo "Enabling apache ssl modules" | log
a2enmod ssl
+a2enmod headers
+a2enconf ssl-params
+a2ensite default-ssl
+
+echo "Restarting apache service" | log
+systemctl restart apache2.service
+waitOrStop 0 "Restart apache service failed"
+
+descriptionAppend "SSL certificates location: /etc/ssl/certs/"
+descriptionAppend " "
tag ssl-ready.success
tagScript success
From d125440a0554fc5724ba26f385e811d0e0c9d4af Mon Sep 17 00:00:00 2001
From: Gil Shwartz <58849439+GShwartz@users.noreply.github.com>
Date: Mon, 6 May 2024 16:48:56 +0300
Subject: [PATCH 037/124] Add files via upload
---
tweaks/apache-enable-ssl | 36 +++---------------------------------
1 file changed, 3 insertions(+), 33 deletions(-)
diff --git a/tweaks/apache-enable-ssl b/tweaks/apache-enable-ssl
index b6df1d55..12cbe690 100755
--- a/tweaks/apache-enable-ssl
+++ b/tweaks/apache-enable-ssl
@@ -12,42 +12,12 @@ echo "Installing openssl and generating certificate..."
installPackage openssl
openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/ssl/private/apache-selfsigned.key -out /etc/ssl/certs/apache-selfsigned.crt -subj "/C=US/ST=YourState/L=YourCity/O=YourOrganization/OU=IT/CN=example.com"
-echo "Creating SSL params" | log
-cat << EOF >> /etc/apache2/conf-available/ssl-params.conf
-SSLCipherSuite EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH
-SSLProtocol All -SSLv2 -SSLv3 -TLSv1 -TLSv1.1
-SSLHonorCipherOrder On
-Header always set X-Frame-Options DENY
-Header always set X-Content-Type-Options nosniff
-# Requires Apache >= 2.4
-SSLCompression off
-SSLUseStapling on
-SSLStaplingCache "shmcb:logs/stapling-cache(150000)"
-# Requires Apache >= 2.4.11
-SSLSessionTickets Off
-EOF
-
-echo "Tweaking SSL virtual host" | log
-defaultSSL=/etc/apache2/sites-available/default-ssl.conf
-sed -i '/ServerAdmin/s/webmaster@localhost/'"${ADMINEMAIL}"'/g' $defaultSSL
-sed -i '/SSLCertificateFile/s/ssl-cert-snakeoil.pem/server.crt/g' $defaultSSL
-sed -i '/SSLCertificateKeyFile/s/ssl-cert-snakeoil.key/server.key/g' $defaultSSL
-# add ServerName + fpm install placeholder
-sed -i '//!b a; /ServerName/!s!\([[:blank:]]*\)\( \)!\1\tServerName localhost\n\t\t#FPM_INSTALL_PLACEHOLDER\n\1\2!}' $defaultSSL
-
-echo "Enabling apache ssl modules" | log
-a2enmod ssl
-a2enmod headers
-a2enconf ssl-params
-a2ensite default-ssl
-
-echo "Restarting apache service" | log
-systemctl restart apache2.service
-waitOrStop 0 "Restart apache service failed"
-
descriptionAppend "SSL certificates location: /etc/ssl/certs/"
descriptionAppend " "
+echo "Enabling SSL..."
+a2enmod ssl
+
tag ssl-ready.success
tagScript success
From ab5ac9d2cbc880bab8578784aad4a01aac49b2b6 Mon Sep 17 00:00:00 2001
From: Gil Shwartz <58849439+GShwartz@users.noreply.github.com>
Date: Mon, 6 May 2024 16:55:23 +0300
Subject: [PATCH 038/124] Add files via upload
---
services/apache-latest-offirepo | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/services/apache-latest-offirepo b/services/apache-latest-offirepo
index b3fb6a72..ce62ec5e 100644
--- a/services/apache-latest-offirepo
+++ b/services/apache-latest-offirepo
@@ -13,7 +13,7 @@ installPackage apache2
echo "Installing passenger module for apache2..."
installPackage libapache2-mod-passenger
-idxHTMLPath="/var/www/html"
+idxHTMLPath="/etc/apache2/sites-available"
if [ ! -d "$idxHTMLPath" ]; then
mkdir -p $idxHTMLPath
@@ -50,6 +50,7 @@ _EOF_
a2enmod ssl
a2ensite figletIDX
a2dissite 000-default
+systemctl start apache2
tag apache.success
tag httpd.success
From 59cd1b04be062fc1c428e83d2bfef95863af992f Mon Sep 17 00:00:00 2001
From: Gil Shwartz <58849439+GShwartz@users.noreply.github.com>
Date: Mon, 6 May 2024 16:55:43 +0300
Subject: [PATCH 039/124] Add files via upload
From 9a4a222102b2945192d6fca9e9eb434d6038716e Mon Sep 17 00:00:00 2001
From: Gil Shwartz <58849439+GShwartz@users.noreply.github.com>
Date: Mon, 6 May 2024 17:17:32 +0300
Subject: [PATCH 040/124] Add files via upload
---
...-contrib-redmine-5.1.1-offisrc-rails-mysqlserver-8.0.conf | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/installer-contrib-redmine-5.1.1-offisrc-rails-mysqlserver-8.0.conf b/installer-contrib-redmine-5.1.1-offisrc-rails-mysqlserver-8.0.conf
index 481a53f9..a1901556 100644
--- a/installer-contrib-redmine-5.1.1-offisrc-rails-mysqlserver-8.0.conf
+++ b/installer-contrib-redmine-5.1.1-offisrc-rails-mysqlserver-8.0.conf
@@ -12,11 +12,12 @@ execute+=(tweaks/ubuntu-ufw-allowmysql)
execute+=(tweaks/ubuntu-ufw-allowhttp)
execute+=(tweaks/ubuntu-updateos)
-. installer-contrib-tweaks-optimize.conf
-
execute+=(services/apache-latest-offirepo)
execute+=(tweaks/apache-enable-ssl)
execute+=(include/installInProgressHttpd-apache)
+
+. installer-contrib-tweaks-optimize.conf
+
execute+=(services/mysqlserver-8.0-osrepo)
execute+=(services/ruby-latest-offirepo-ruby-dev)
execute+=(apps/redmine-5.1.1-offisrc-apache-rails-mysql-8.0)
\ No newline at end of file
From 74fbc560112195b29a70ade30926bb23a357f249 Mon Sep 17 00:00:00 2001
From: Gil Shwartz <58849439+GShwartz@users.noreply.github.com>
Date: Mon, 6 May 2024 17:26:55 +0300
Subject: [PATCH 041/124] Add files via upload
---
services/apache-latest-offirepo | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/services/apache-latest-offirepo b/services/apache-latest-offirepo
index ce62ec5e..d40c214f 100644
--- a/services/apache-latest-offirepo
+++ b/services/apache-latest-offirepo
@@ -23,8 +23,6 @@ echo "Writing apache configuration file..."
cat <<_EOF_ > /etc/apache2/sites-available/figletIDX.conf
ServerName _
-
- ServerAdmin webmaster@localhost
DocumentRoot /etc/apache2/sites-available/
ErrorLog ${APACHE_LOG_DIR}/error.log
@@ -48,9 +46,12 @@ cat <<_EOF_ > /etc/apache2/sites-available/figletIDX.conf
_EOF_
a2enmod ssl
-a2ensite figletIDX
a2dissite 000-default
+a2dissite 000-default-ssl
+a2ensite figletIDX
+
systemctl start apache2
+systemctl reload apache2
tag apache.success
tag httpd.success
From 41f6171f77b652f297873c58a19295810a123c34 Mon Sep 17 00:00:00 2001
From: Gil Shwartz <58849439+GShwartz@users.noreply.github.com>
Date: Mon, 6 May 2024 17:28:24 +0300
Subject: [PATCH 042/124] Add files via upload
---
include/installInProgressHttpd-apache | 2 ++
1 file changed, 2 insertions(+)
diff --git a/include/installInProgressHttpd-apache b/include/installInProgressHttpd-apache
index 7a463464..31db9f41 100644
--- a/include/installInProgressHttpd-apache
+++ b/include/installInProgressHttpd-apache
@@ -41,6 +41,8 @@ $figletApp "Install in Progress" >> "$appPath/index.html"
echo "Please Wait. Application and services installation is in progress, the process will take a couple of minutes to complete. Thank you for your patience. Refresh the page within a couple of minutes for an updated status." >> "$appPath/index.html"
echo "
" >> "$appPath/index.html"
+echo "Reloading Apache2..."
+systemctl reload apache2
tagScript success
exit 0
From 5a1e52de887a13b687a7f526a2cc70e92c1a0508 Mon Sep 17 00:00:00 2001
From: Gil Shwartz <58849439+GShwartz@users.noreply.github.com>
Date: Mon, 6 May 2024 17:29:14 +0300
Subject: [PATCH 043/124] Add files via upload
---
services/apache-latest-offirepo | 2 --
1 file changed, 2 deletions(-)
diff --git a/services/apache-latest-offirepo b/services/apache-latest-offirepo
index d40c214f..155d8cfc 100644
--- a/services/apache-latest-offirepo
+++ b/services/apache-latest-offirepo
@@ -49,9 +49,7 @@ a2enmod ssl
a2dissite 000-default
a2dissite 000-default-ssl
a2ensite figletIDX
-
systemctl start apache2
-systemctl reload apache2
tag apache.success
tag httpd.success
From 2c0866d1fab8dfcb477816eca12cb059dcea7477 Mon Sep 17 00:00:00 2001
From: Gil Shwartz <58849439+GShwartz@users.noreply.github.com>
Date: Mon, 6 May 2024 17:45:11 +0300
Subject: [PATCH 044/124] Add files via upload
From a9fefee3cf91574a96037b05086dd6446c174bda Mon Sep 17 00:00:00 2001
From: Gil Shwartz <58849439+GShwartz@users.noreply.github.com>
Date: Mon, 6 May 2024 17:45:26 +0300
Subject: [PATCH 045/124] Add files via upload
---
services/ruby-latest-offirepo-ruby-dev | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
diff --git a/services/ruby-latest-offirepo-ruby-dev b/services/ruby-latest-offirepo-ruby-dev
index 75f19d1b..a9bd9435 100644
--- a/services/ruby-latest-offirepo-ruby-dev
+++ b/services/ruby-latest-offirepo-ruby-dev
@@ -6,8 +6,18 @@ elif [ -f "../include/startup.sh" ]; then
. ../include/startup.sh
fi
-echo "Installing Ruby from apt" | log
+figletApp=$(which figlet)
+
+echo "Updating 'Installing Ruby...' notice to $appPath/index.html" | log
+echo "Installation Progress " > "$appPath/index.html"
+$figletApp "Install in Progress" >> "$appPath/index.html"
+echo "Please Wait. Installing Ruby..." >> "$appPath/index.html"
+echo "
" >> "$appPath/index.html"
+echo "Reloading Apache2..."
+systemctl reload apache2
+
+echo "Installing Ruby from apt" | log
installPackage ruby | log
waitOrStop 0 "Failed to install ruby"
From 4374ff943355173fee134d81e86046d0df22c1f1 Mon Sep 17 00:00:00 2001
From: Gil Shwartz <58849439+GShwartz@users.noreply.github.com>
Date: Mon, 6 May 2024 17:46:10 +0300
Subject: [PATCH 046/124] Add files via upload
From cf22e87bdd1abba47932fdbe99dc4af14f5bfce9 Mon Sep 17 00:00:00 2001
From: Gil Shwartz <58849439+GShwartz@users.noreply.github.com>
Date: Mon, 6 May 2024 17:46:26 +0300
Subject: [PATCH 047/124] Add files via upload
From 1e810177e3667d2c6e88ecae94b22fd0695aa920 Mon Sep 17 00:00:00 2001
From: Gil Shwartz <58849439+GShwartz@users.noreply.github.com>
Date: Mon, 6 May 2024 19:17:59 +0300
Subject: [PATCH 048/124] Add files via upload
---
.../mysqlserver-8.0-osrepo-withFiglet.conf | 96 +++++++++++++++++++
1 file changed, 96 insertions(+)
create mode 100644 services/mysqlserver-8.0-osrepo-withFiglet.conf
diff --git a/services/mysqlserver-8.0-osrepo-withFiglet.conf b/services/mysqlserver-8.0-osrepo-withFiglet.conf
new file mode 100644
index 00000000..f1c41588
--- /dev/null
+++ b/services/mysqlserver-8.0-osrepo-withFiglet.conf
@@ -0,0 +1,96 @@
+#!/bin/bash
+
+if [ -f "include/startup.sh" ]; then
+ . include/startup.sh
+elif [ -f "../include/startup.sh" ]; then
+ . ../include/startup.sh
+fi
+
+checkTagExist ubuntu-updateos.success
+
+figletApp=$(which figlet)
+
+echo "Updating 'Installing MySQL server 8.0...' notice to $appPath/index.html" | log
+echo "Installation Progress " > "$appPath/index.html"
+$figletApp "Install in Progress" >> "$appPath/index.html"
+echo "Please Wait. Installing MySQL server 8.0..." >> "$appPath/index.html"
+echo "
" >> "$appPath/index.html"
+
+echo "Create temp swap for composer processes" | log
+#increase vm swappiness to allow swap to dominate process
+sudo fallocate -l 2G /swapfile
+sudo chmod 600 /swapfile
+sudo mkswap /swapfile
+sudo swapon /swapfile
+sleep 5
+
+echo "Installing mysql from apt" | log
+export DEBIAN_FRONTEND="noninteractive"
+debconf-set-selections <<< "mysql-server-8.0 mysql-server/root_password password ${ADMINPASSWORD}"
+debconf-set-selections <<< "mysql-server-8.0 mysql-server/root_password_again password ${ADMINPASSWORD}"
+installPackage mysql-server
+waitOrStop 0 "Failed apt install: mysql-server-8.0"
+
+echo "Set ~/.my.cnf root password for quick cli work" | log
+if [ ! -f ~/.my.cnf ]; then
+
+cat << EOF > ~/.my.cnf
+[client]
+user=root
+password='${ADMINPASSWORD}'
+EOF
+
+fi
+
+echo "Running first setup process" | log
+mysql_secure_installation --defaults-file=/root/.my.cnf -h localhost << EOF
+n
+n
+y
+y
+y
+y
+EOF
+
+# "Validate password plugin?" n
+# "New password?" n
+# "Remove anonymous users?" y
+# "Disallow root login remotely?" y
+# "Remove test database and access to it?" y
+# "Reload privilege tables now?" y
+
+echo "Set Password method for root" | log
+mysql --defaults-file=/root/.my.cnf -h localhost < /etc/mysql/mysql.conf.d/mysqld-installer.cnf
+[mysqld]
+skip-name-resolve=1
+max_allowed_packet=256M
+EOF
+
+fi
+
+echo "Restarting mysql.service" | log
+systemctl restart mysql.service
+waitOrStop 0 "Restart mysql service failed"
+
+echo "Adding descriptions" | log
+descriptionAppend "mySQL Server Address: ${CWM_SERVERIP}"
+descriptionAppend "mySQL Server Username: root"
+descriptionAppend "mySQL Server Password: ${ADMINPASSWORD}"
+descriptionAppend " "
+descriptionAppend "mySQL Server config global files location: /etc/mysql/"
+descriptionAppend "mySQL Server config user-specific file: ~/.my.cnf"
+descriptionAppend " "
+
+tag mysql-server-5.7.success
+tag mysqld.success
+
+tagScript success
+
+exit 0
\ No newline at end of file
From 3d2631afb188f49938fa929e5c8bc1017bfc0212 Mon Sep 17 00:00:00 2001
From: Gil Shwartz <58849439+GShwartz@users.noreply.github.com>
Date: Mon, 6 May 2024 19:18:52 +0300
Subject: [PATCH 049/124] Update
installer-contrib-redmine-5.1.1-offisrc-rails-mysqlserver-8.0.conf
---
...r-contrib-redmine-5.1.1-offisrc-rails-mysqlserver-8.0.conf | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/installer-contrib-redmine-5.1.1-offisrc-rails-mysqlserver-8.0.conf b/installer-contrib-redmine-5.1.1-offisrc-rails-mysqlserver-8.0.conf
index a1901556..25c080d0 100644
--- a/installer-contrib-redmine-5.1.1-offisrc-rails-mysqlserver-8.0.conf
+++ b/installer-contrib-redmine-5.1.1-offisrc-rails-mysqlserver-8.0.conf
@@ -18,6 +18,6 @@ execute+=(include/installInProgressHttpd-apache)
. installer-contrib-tweaks-optimize.conf
-execute+=(services/mysqlserver-8.0-osrepo)
+execute+=(services/mysqlserver-8.0-osrepo-withFiglet)
execute+=(services/ruby-latest-offirepo-ruby-dev)
-execute+=(apps/redmine-5.1.1-offisrc-apache-rails-mysql-8.0)
\ No newline at end of file
+execute+=(apps/redmine-5.1.1-offisrc-apache-rails-mysql-8.0)
From 03177dbb85c82aa32d6c37b5199f954551e31a84 Mon Sep 17 00:00:00 2001
From: Gil Shwartz <58849439+GShwartz@users.noreply.github.com>
Date: Mon, 6 May 2024 19:19:27 +0300
Subject: [PATCH 050/124] Rename mysqlserver-8.0-osrepo-withFiglet.conf to
mysqlserver-8.0-osrepo-withFiglet
---
...osrepo-withFiglet.conf => mysqlserver-8.0-osrepo-withFiglet} | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
rename services/{mysqlserver-8.0-osrepo-withFiglet.conf => mysqlserver-8.0-osrepo-withFiglet} (99%)
diff --git a/services/mysqlserver-8.0-osrepo-withFiglet.conf b/services/mysqlserver-8.0-osrepo-withFiglet
similarity index 99%
rename from services/mysqlserver-8.0-osrepo-withFiglet.conf
rename to services/mysqlserver-8.0-osrepo-withFiglet
index f1c41588..0f4dbd28 100644
--- a/services/mysqlserver-8.0-osrepo-withFiglet.conf
+++ b/services/mysqlserver-8.0-osrepo-withFiglet
@@ -93,4 +93,4 @@ tag mysqld.success
tagScript success
-exit 0
\ No newline at end of file
+exit 0
From 94edf1cc9a22614f1ea79953c301e233150f4827 Mon Sep 17 00:00:00 2001
From: Gil Shwartz <58849439+GShwartz@users.noreply.github.com>
Date: Mon, 6 May 2024 19:35:19 +0300
Subject: [PATCH 051/124] Add files via upload
---
services/apache-latest-offirepo | 113 ++++++++++++++++----------------
1 file changed, 56 insertions(+), 57 deletions(-)
diff --git a/services/apache-latest-offirepo b/services/apache-latest-offirepo
index 155d8cfc..36d4841d 100644
--- a/services/apache-latest-offirepo
+++ b/services/apache-latest-offirepo
@@ -1,58 +1,57 @@
-#!/bin/bash
-
-# Add this at the begining of all scripts.
-if [ -f "include/startup.sh" ]; then
- . include/startup.sh
-elif [ -f "../include/startup.sh" ]; then
- . ../include/startup.sh
-fi
-
-echo "Installing Apache2..."
-installPackage apache2
-
-echo "Installing passenger module for apache2..."
-installPackage libapache2-mod-passenger
-
-idxHTMLPath="/etc/apache2/sites-available"
-if [ ! -d "$idxHTMLPath" ]; then
- mkdir -p $idxHTMLPath
-
-fi
-
-echo "Writing apache configuration file..."
-cat <<_EOF_ > /etc/apache2/sites-available/figletIDX.conf
-
- ServerName _
- DocumentRoot /etc/apache2/sites-available/
-
- ErrorLog ${APACHE_LOG_DIR}/error.log
- CustomLog ${APACHE_LOG_DIR}/access.log combined
-
-
-
- ServerName _
- DocumentRoot /etc/apache2/sites-available/
-
- SSLEngine on
- SSLCertificateFile /etc/ssl/certs/apache-selfsigned.crt
- SSLCertificateKeyFile /etc/ssl/private/apache-selfsigned.key
-
-
- Allow from all
- Options -MultiViews
- Require all granted
-
-
-_EOF_
-
-a2enmod ssl
-a2dissite 000-default
-a2dissite 000-default-ssl
-a2ensite figletIDX
-systemctl start apache2
-
-tag apache.success
-tag httpd.success
-tagScript success
-
+#!/bin/bash
+
+# Add this at the begining of all scripts.
+if [ -f "include/startup.sh" ]; then
+ . include/startup.sh
+elif [ -f "../include/startup.sh" ]; then
+ . ../include/startup.sh
+fi
+
+echo "Installing Apache2..."
+installPackage apache2
+
+echo "Installing passenger module for apache2..."
+installPackage libapache2-mod-passenger
+
+idxHTMLPath="/etc/apache2/sites-available"
+if [ ! -d "$idxHTMLPath" ]; then
+ mkdir -p $idxHTMLPath
+
+fi
+
+echo "Writing apache configuration file..."
+cat <<_EOF_ > /etc/apache2/sites-available/figletIDX.conf
+
+ ServerName _
+ DocumentRoot /etc/apache2/sites-available/
+
+ ErrorLog ${APACHE_LOG_DIR}/error.log
+ CustomLog ${APACHE_LOG_DIR}/access.log combined
+
+
+
+ ServerName _
+ DocumentRoot /etc/apache2/sites-available/
+
+ SSLEngine on
+ SSLCertificateFile /etc/ssl/certs/apache-selfsigned.crt
+ SSLCertificateKeyFile /etc/ssl/private/apache-selfsigned.key
+
+
+ Allow from all
+ Options -MultiViews
+ Require all granted
+
+
+_EOF_
+
+a2enmod ssl
+a2dissite 000-default
+a2ensite figletIDX
+systemctl start apache2
+
+tag apache.success
+tag httpd.success
+tagScript success
+
exit 0
\ No newline at end of file
From 3d775c4db13eabf0c89ca35e7806e2888248dd35 Mon Sep 17 00:00:00 2001
From: Gil Shwartz <58849439+GShwartz@users.noreply.github.com>
Date: Mon, 6 May 2024 19:40:12 +0300
Subject: [PATCH 052/124] Add files via upload
From 1751c9ea3a8d8788e0409e0e3527215ff5a8b495 Mon Sep 17 00:00:00 2001
From: Gil Shwartz <58849439+GShwartz@users.noreply.github.com>
Date: Mon, 6 May 2024 19:45:14 +0300
Subject: [PATCH 053/124] Add files via upload
From 67e07c57f9bff62146367749fcb4ae5c1cf21e9d Mon Sep 17 00:00:00 2001
From: Gil Shwartz <58849439+GShwartz@users.noreply.github.com>
Date: Mon, 6 May 2024 19:45:32 +0300
Subject: [PATCH 054/124] Add files via upload
---
services/apache-latest-offirepo | 112 ++++++++++++++++----------------
1 file changed, 56 insertions(+), 56 deletions(-)
diff --git a/services/apache-latest-offirepo b/services/apache-latest-offirepo
index 36d4841d..58fe0102 100644
--- a/services/apache-latest-offirepo
+++ b/services/apache-latest-offirepo
@@ -1,57 +1,57 @@
-#!/bin/bash
-
-# Add this at the begining of all scripts.
-if [ -f "include/startup.sh" ]; then
- . include/startup.sh
-elif [ -f "../include/startup.sh" ]; then
- . ../include/startup.sh
-fi
-
-echo "Installing Apache2..."
-installPackage apache2
-
-echo "Installing passenger module for apache2..."
-installPackage libapache2-mod-passenger
-
-idxHTMLPath="/etc/apache2/sites-available"
-if [ ! -d "$idxHTMLPath" ]; then
- mkdir -p $idxHTMLPath
-
-fi
-
-echo "Writing apache configuration file..."
-cat <<_EOF_ > /etc/apache2/sites-available/figletIDX.conf
-
- ServerName _
- DocumentRoot /etc/apache2/sites-available/
-
- ErrorLog ${APACHE_LOG_DIR}/error.log
- CustomLog ${APACHE_LOG_DIR}/access.log combined
-
-
-
- ServerName _
- DocumentRoot /etc/apache2/sites-available/
-
- SSLEngine on
- SSLCertificateFile /etc/ssl/certs/apache-selfsigned.crt
- SSLCertificateKeyFile /etc/ssl/private/apache-selfsigned.key
-
-
- Allow from all
- Options -MultiViews
- Require all granted
-
-
-_EOF_
-
-a2enmod ssl
-a2dissite 000-default
-a2ensite figletIDX
-systemctl start apache2
-
-tag apache.success
-tag httpd.success
-tagScript success
-
+#!/bin/bash
+
+# Add this at the begining of all scripts.
+if [ -f "include/startup.sh" ]; then
+ . include/startup.sh
+elif [ -f "../include/startup.sh" ]; then
+ . ../include/startup.sh
+fi
+
+echo "Installing Apache2..."
+installPackage apache2
+
+echo "Installing passenger module for apache2..."
+installPackage libapache2-mod-passenger
+
+idxHTMLPath="/etc/apache2/sites-available"
+if [ ! -d "$idxHTMLPath" ]; then
+ mkdir -p $idxHTMLPath
+
+fi
+
+echo "Writing apache configuration file..."
+cat <<_EOF_ > /etc/apache2/sites-available/figletIDX.conf
+
+ ServerName _
+ DocumentRoot /etc/apache2/sites-available/
+
+ ErrorLog ${APACHE_LOG_DIR}/error.log
+ CustomLog ${APACHE_LOG_DIR}/access.log combined
+
+
+
+ ServerName _
+ DocumentRoot /etc/apache2/sites-available/
+
+ SSLEngine on
+ SSLCertificateFile /etc/ssl/certs/apache-selfsigned.crt
+ SSLCertificateKeyFile /etc/ssl/private/apache-selfsigned.key
+
+
+ Allow from all
+ Options -MultiViews
+ Require all granted
+
+
+_EOF_
+
+a2enmod ssl
+a2dissite 000-default
+a2ensite figletIDX
+systemctl start apache2
+
+tag apache.success
+tag httpd.success
+tagScript success
+
exit 0
\ No newline at end of file
From 878e8d7df4a0f8f257539588346808de0684965c Mon Sep 17 00:00:00 2001
From: Gil Shwartz <58849439+GShwartz@users.noreply.github.com>
Date: Mon, 6 May 2024 19:46:14 +0300
Subject: [PATCH 055/124] Add files via upload
From 2590a331617252547bffe12ae2f0a5b010b51a76 Mon Sep 17 00:00:00 2001
From: Gil Shwartz <58849439+GShwartz@users.noreply.github.com>
Date: Mon, 6 May 2024 19:56:13 +0300
Subject: [PATCH 056/124] Add files via upload
---
apps/redmine-5.1.1-offisrc-apache-rails-mysql-8.0 | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/apps/redmine-5.1.1-offisrc-apache-rails-mysql-8.0 b/apps/redmine-5.1.1-offisrc-apache-rails-mysql-8.0
index 31a77b34..1c14c590 100644
--- a/apps/redmine-5.1.1-offisrc-apache-rails-mysql-8.0
+++ b/apps/redmine-5.1.1-offisrc-apache-rails-mysql-8.0
@@ -8,6 +8,19 @@ elif [ -f "../include/startup.sh" ]; then
fi
+appPath="/etc/apache2/sites-available"
+figletApp=$(which figlet)
+
+echo "Updating 'Installing Redmine...' notice to $appPath/index.html" | log
+echo "" > "$appPath/index.html"
+echo "Installation Progress " > "$appPath/index.html"
+$figletApp "Install in Progress" >> "$appPath/index.html"
+echo "Please Wait. Installing Redmine..." >> "$appPath/index.html"
+echo "
" >> "$appPath/index.html"
+
+echo "Reloading Apache2..."
+systemctl reload apache2
+
# Variables
DB_ROOT_PASS="Pass1234!"
DB_REDMINE_PASS="redmine"
From 9c86c75ed98fe0cf50413109bcd07198b36fbdd9 Mon Sep 17 00:00:00 2001
From: Gil Shwartz <58849439+GShwartz@users.noreply.github.com>
Date: Mon, 6 May 2024 19:57:20 +0300
Subject: [PATCH 057/124] Add files via upload
---
services/mysqlserver-8.0-osrepo-withFiglet | 5 ++
services/ruby-latest-offirepo-ruby-dev | 66 +++++++++++-----------
2 files changed, 39 insertions(+), 32 deletions(-)
diff --git a/services/mysqlserver-8.0-osrepo-withFiglet b/services/mysqlserver-8.0-osrepo-withFiglet
index 0f4dbd28..d8b20f7f 100644
--- a/services/mysqlserver-8.0-osrepo-withFiglet
+++ b/services/mysqlserver-8.0-osrepo-withFiglet
@@ -8,14 +8,19 @@ fi
checkTagExist ubuntu-updateos.success
+appPath="/etc/apache2/sites-available"
figletApp=$(which figlet)
echo "Updating 'Installing MySQL server 8.0...' notice to $appPath/index.html" | log
+echo "" > "$appPath/index.html"
echo "Installation Progress " > "$appPath/index.html"
$figletApp "Install in Progress" >> "$appPath/index.html"
echo "Please Wait. Installing MySQL server 8.0..." >> "$appPath/index.html"
echo "
" >> "$appPath/index.html"
+echo "Reloading Apache2..."
+systemctl reload apache2
+
echo "Create temp swap for composer processes" | log
#increase vm swappiness to allow swap to dominate process
sudo fallocate -l 2G /swapfile
diff --git a/services/ruby-latest-offirepo-ruby-dev b/services/ruby-latest-offirepo-ruby-dev
index a9bd9435..372ffbfe 100644
--- a/services/ruby-latest-offirepo-ruby-dev
+++ b/services/ruby-latest-offirepo-ruby-dev
@@ -1,33 +1,35 @@
-#!/bin/bash
-
-if [ -f "include/startup.sh" ]; then
- . include/startup.sh
-elif [ -f "../include/startup.sh" ]; then
- . ../include/startup.sh
-fi
-
-figletApp=$(which figlet)
-
-echo "Updating 'Installing Ruby...' notice to $appPath/index.html" | log
-echo "Installation Progress " > "$appPath/index.html"
-$figletApp "Install in Progress" >> "$appPath/index.html"
-echo "Please Wait. Installing Ruby..." >> "$appPath/index.html"
-echo "
" >> "$appPath/index.html"
-
-echo "Reloading Apache2..."
-systemctl reload apache2
-
-echo "Installing Ruby from apt" | log
-installPackage ruby | log
-waitOrStop 0 "Failed to install ruby"
-
-installPackage ruby-dev | log
-waitOrStop 0 "Failed to install ruby-dev"
-
-installPackage build-essential | log
-waitOrStop 0 "Failed to install build-essential"
-
-
-tag ruby.success
-tagScript success
+#!/bin/bash
+
+if [ -f "include/startup.sh" ]; then
+ . include/startup.sh
+elif [ -f "../include/startup.sh" ]; then
+ . ../include/startup.sh
+fi
+
+appPath="/etc/apache2/sites-available"
+figletApp=$(which figlet)
+
+echo "Updating 'Installing Ruby...' notice to $appPath/index.html" | log
+echo "" > "$appPath/index.html"
+echo "Installation Progress " > "$appPath/index.html"
+$figletApp "Install in Progress" >> "$appPath/index.html"
+echo "Please Wait. Installing Ruby..." >> "$appPath/index.html"
+echo "
" >> "$appPath/index.html"
+
+echo "Reloading Apache2..."
+systemctl reload apache2
+
+echo "Installing Ruby from apt" | log
+installPackage ruby | log
+waitOrStop 0 "Failed to install ruby"
+
+installPackage ruby-dev | log
+waitOrStop 0 "Failed to install ruby-dev"
+
+installPackage build-essential | log
+waitOrStop 0 "Failed to install build-essential"
+
+
+tag ruby.success
+tagScript success
exit 0
\ No newline at end of file
From 5740d554d3329a950176d56b397a218f3f3d10c6 Mon Sep 17 00:00:00 2001
From: Gil Shwartz <58849439+GShwartz@users.noreply.github.com>
Date: Mon, 6 May 2024 20:00:54 +0300
Subject: [PATCH 058/124] Add files via upload
---
installer-contrib-tweaks-preinstall.conf | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/installer-contrib-tweaks-preinstall.conf b/installer-contrib-tweaks-preinstall.conf
index c74ec1fb..8db6f9c9 100644
--- a/installer-contrib-tweaks-preinstall.conf
+++ b/installer-contrib-tweaks-preinstall.conf
@@ -7,6 +7,6 @@ execute+=(tweaks/ubuntu-disable-openssl-randfile)
chmod +x services/apache-latest-offirepo
chmod +x tweaks/apache-enable-ssl
chmod +x include/installInProgressHttpd-apache
-chmod +x services/mysqlserver-8.0-osrepo
+chmod +x services/mysqlserver-8.0-osrepo-withFiglet
chmod +x services/ruby-latest-offirepo-ruby-dev
chmod +x apps/redmine-5.1.1-offisrc-apache-rails-mysql-8.0
\ No newline at end of file
From 3983735eeee98f8c6a8ddc90b15962f8793e342e Mon Sep 17 00:00:00 2001
From: Gil Shwartz <58849439+GShwartz@users.noreply.github.com>
Date: Mon, 6 May 2024 20:03:54 +0300
Subject: [PATCH 059/124] Add files via upload
---
services/ruby-latest-offirepo-ruby-dev | 68 +++++++++++++-------------
1 file changed, 34 insertions(+), 34 deletions(-)
diff --git a/services/ruby-latest-offirepo-ruby-dev b/services/ruby-latest-offirepo-ruby-dev
index 372ffbfe..8d76f4e1 100644
--- a/services/ruby-latest-offirepo-ruby-dev
+++ b/services/ruby-latest-offirepo-ruby-dev
@@ -1,35 +1,35 @@
-#!/bin/bash
-
-if [ -f "include/startup.sh" ]; then
- . include/startup.sh
-elif [ -f "../include/startup.sh" ]; then
- . ../include/startup.sh
-fi
-
-appPath="/etc/apache2/sites-available"
-figletApp=$(which figlet)
-
-echo "Updating 'Installing Ruby...' notice to $appPath/index.html" | log
-echo "" > "$appPath/index.html"
-echo "Installation Progress " > "$appPath/index.html"
-$figletApp "Install in Progress" >> "$appPath/index.html"
-echo "Please Wait. Installing Ruby..." >> "$appPath/index.html"
-echo "
" >> "$appPath/index.html"
-
-echo "Reloading Apache2..."
-systemctl reload apache2
-
-echo "Installing Ruby from apt" | log
-installPackage ruby | log
-waitOrStop 0 "Failed to install ruby"
-
-installPackage ruby-dev | log
-waitOrStop 0 "Failed to install ruby-dev"
-
-installPackage build-essential | log
-waitOrStop 0 "Failed to install build-essential"
-
-
-tag ruby.success
-tagScript success
+#!/bin/bash
+
+if [ -f "include/startup.sh" ]; then
+ . include/startup.sh
+elif [ -f "../include/startup.sh" ]; then
+ . ../include/startup.sh
+fi
+
+appPath="/etc/apache2/sites-available"
+figletApp=$(which figlet)
+
+echo "Updating 'Installing Ruby...' notice to $appPath/index.html" | log
+echo "" > "$appPath/index.html"
+echo "Installation Progress " > "$appPath/index.html"
+$figletApp "Install in Progress" >> "$appPath/index.html"
+echo "Please Wait. Installing Ruby..." >> "$appPath/index.html"
+echo "
" >> "$appPath/index.html"
+
+echo "Reloading Apache2..."
+systemctl reload apache2
+
+echo "Installing Ruby from apt" | log
+installPackage ruby | log
+waitOrStop 0 "Failed to install ruby"
+
+installPackage ruby-dev | log
+waitOrStop 0 "Failed to install ruby-dev"
+
+installPackage build-essential | log
+waitOrStop 0 "Failed to install build-essential"
+
+
+tag ruby.success
+tagScript success
exit 0
\ No newline at end of file
From f976bcbebed34c707974022b709f3ce2efe5d22c Mon Sep 17 00:00:00 2001
From: Gil Shwartz <58849439+GShwartz@users.noreply.github.com>
Date: Mon, 6 May 2024 20:13:54 +0300
Subject: [PATCH 060/124] Add files via upload
---
services/apache-latest-offirepo | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/services/apache-latest-offirepo b/services/apache-latest-offirepo
index 58fe0102..8ca181f1 100644
--- a/services/apache-latest-offirepo
+++ b/services/apache-latest-offirepo
@@ -46,9 +46,13 @@ cat <<_EOF_ > /etc/apache2/sites-available/figletIDX.conf
_EOF_
a2enmod ssl
-a2dissite 000-default
a2ensite figletIDX
+a2dissite 000-default
systemctl start apache2
+systemctl enable Apache2
+
+echo "Reloading Apache2..."
+systemctl reload apache2
tag apache.success
tag httpd.success
From 588dd45db6bbb183ac3d9ce4f1fcb7695faaf7f2 Mon Sep 17 00:00:00 2001
From: Gil Shwartz <58849439+GShwartz@users.noreply.github.com>
Date: Mon, 6 May 2024 20:16:33 +0300
Subject: [PATCH 061/124] Add files via upload
---
services/apache-latest-offirepo | 4 ----
1 file changed, 4 deletions(-)
diff --git a/services/apache-latest-offirepo b/services/apache-latest-offirepo
index 8ca181f1..bcc0a709 100644
--- a/services/apache-latest-offirepo
+++ b/services/apache-latest-offirepo
@@ -49,10 +49,6 @@ a2enmod ssl
a2ensite figletIDX
a2dissite 000-default
systemctl start apache2
-systemctl enable Apache2
-
-echo "Reloading Apache2..."
-systemctl reload apache2
tag apache.success
tag httpd.success
From 3affc01804dd2e70e514cebb63220244ba07cadc Mon Sep 17 00:00:00 2001
From: Gil Shwartz <58849439+GShwartz@users.noreply.github.com>
Date: Mon, 6 May 2024 20:24:16 +0300
Subject: [PATCH 062/124] Add files via upload
---
tweaks/apache-enable-ssl | 3 +++
1 file changed, 3 insertions(+)
diff --git a/tweaks/apache-enable-ssl b/tweaks/apache-enable-ssl
index 12cbe690..d33d2692 100755
--- a/tweaks/apache-enable-ssl
+++ b/tweaks/apache-enable-ssl
@@ -18,6 +18,9 @@ descriptionAppend " "
echo "Enabling SSL..."
a2enmod ssl
+echo "Reloading Apache2..."
+systemctl reload apache2
+
tag ssl-ready.success
tagScript success
From adbc412863a631fe6491213a97f66bf5934aefa9 Mon Sep 17 00:00:00 2001
From: Gil Shwartz <58849439+GShwartz@users.noreply.github.com>
Date: Mon, 6 May 2024 22:32:09 +0300
Subject: [PATCH 063/124] Add files via upload
---
include/installInProgressHttpd-apache | 97 ++++++++++++++-------------
1 file changed, 49 insertions(+), 48 deletions(-)
diff --git a/include/installInProgressHttpd-apache b/include/installInProgressHttpd-apache
index 31db9f41..189a7017 100644
--- a/include/installInProgressHttpd-apache
+++ b/include/installInProgressHttpd-apache
@@ -1,48 +1,49 @@
-#!/bin/bash
-
-# Add this at the begining of all scripts.
-if [ -f "include/startup.sh" ]; then
- . include/startup.sh
-elif [ -f "../include/startup.sh" ]; then
- . ../include/startup.sh
-fi
-
-echo "Installing Figlet..."
-apt update && apt install -y figlet
-
-appPath=/etc/apache2/sites-available
-if [ ! -d "$appPath" ]; then
- echo "$appPath does not exists. Creating directory..."
- mkdir -p $appPath
-fi
-touch $appPath/index.html
-
-figletApp=$(which figlet)
-
-if [ ! -d "$appPath" ]; then
- echo "Web server directory doesn't exist, exiting." | log 1
- exit 1
-fi
-
-if [ -f "$appPath/redmine.conf" ]; then
- echo "redmine.conf file exists. Skipping." | log
- tagScript success
- exit 99
-fi
-
-if [ -z "$figletApp" ]; then
- echo "Figlet is not installed, please install figlet." | log 1
- exit 1
-fi
-
-echo "Adding 'Install in Progress' notice to $appPath/index.html" | log
-echo "Installation Progress " > "$appPath/index.html"
-$figletApp "Install in Progress" >> "$appPath/index.html"
-echo "Please Wait. Application and services installation is in progress, the process will take a couple of minutes to complete. Thank you for your patience. Refresh the page within a couple of minutes for an updated status." >> "$appPath/index.html"
-echo "
" >> "$appPath/index.html"
-
-echo "Reloading Apache2..."
-systemctl reload apache2
-
-tagScript success
-exit 0
+#!/bin/bash
+
+# Add this at the begining of all scripts.
+if [ -f "include/startup.sh" ]; then
+ . include/startup.sh
+elif [ -f "../include/startup.sh" ]; then
+ . ../include/startup.sh
+fi
+
+echo "Installing Figlet..."
+apt update && apt install -y figlet
+
+appPath="/etc/apache2/sites-available"
+if [ ! -d "$appPath" ]; then
+ echo "$appPath does not exists. Creating directory..."
+ mkdir -p $appPath
+fi
+touch $appPath/index.html
+
+figletApp=$(which figlet)
+
+if [ ! -d "$appPath" ]; then
+ echo "Web server directory doesn't exist, exiting." | log 1
+ exit 1
+fi
+
+if [ -f "$appPath/redmine.conf" ]; then
+ echo "redmine.conf file exists. Skipping." | log
+ tagScript success
+ exit 99
+fi
+
+if [ -z "$figletApp" ]; then
+ echo "Figlet is not installed, please install figlet." | log 1
+ exit 1
+fi
+
+echo "Adding 'Install in Progress' notice to $appPath/index.html" | log
+echo "Installation Progress " > "$appPath/index.html"
+$figletApp "Install in Progress" >> "$appPath/index.html"
+echo "Please Wait. Application and services installation is in progress, the process will take a couple of minutes to complete. Thank you for your patience. Refresh the page within a couple of minutes for an updated status." >> "$appPath/index.html"
+echo "" >> "$appPath/index.html"
+echo "
" >> "$appPath/index.html"
+
+echo "Reloading Apache2..."
+systemctl reload apache2
+
+tagScript success
+exit 0
From be42ed231b07bf52e0a9909a5e8cb60bfb80f396 Mon Sep 17 00:00:00 2001
From: Gil Shwartz <58849439+GShwartz@users.noreply.github.com>
Date: Mon, 6 May 2024 22:32:30 +0300
Subject: [PATCH 064/124] Add files via upload
---
services/mysqlserver-8.0-osrepo-withFiglet | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/services/mysqlserver-8.0-osrepo-withFiglet b/services/mysqlserver-8.0-osrepo-withFiglet
index d8b20f7f..d7d11756 100644
--- a/services/mysqlserver-8.0-osrepo-withFiglet
+++ b/services/mysqlserver-8.0-osrepo-withFiglet
@@ -12,10 +12,10 @@ appPath="/etc/apache2/sites-available"
figletApp=$(which figlet)
echo "Updating 'Installing MySQL server 8.0...' notice to $appPath/index.html" | log
-echo "" > "$appPath/index.html"
echo "Installation Progress " > "$appPath/index.html"
$figletApp "Install in Progress" >> "$appPath/index.html"
echo "Please Wait. Installing MySQL server 8.0..." >> "$appPath/index.html"
+echo "" >> "$appPath/index.html"
echo "
" >> "$appPath/index.html"
echo "Reloading Apache2..."
From c3289ab2022b61afe488ed7726285878c19c4bdb Mon Sep 17 00:00:00 2001
From: Gil Shwartz <58849439+GShwartz@users.noreply.github.com>
Date: Mon, 6 May 2024 22:34:18 +0300
Subject: [PATCH 065/124] Add files via upload
---
include/installInProgressHttpd-apache | 98 +++++++++++++--------------
1 file changed, 49 insertions(+), 49 deletions(-)
diff --git a/include/installInProgressHttpd-apache b/include/installInProgressHttpd-apache
index 189a7017..8b5210a0 100644
--- a/include/installInProgressHttpd-apache
+++ b/include/installInProgressHttpd-apache
@@ -1,49 +1,49 @@
-#!/bin/bash
-
-# Add this at the begining of all scripts.
-if [ -f "include/startup.sh" ]; then
- . include/startup.sh
-elif [ -f "../include/startup.sh" ]; then
- . ../include/startup.sh
-fi
-
-echo "Installing Figlet..."
-apt update && apt install -y figlet
-
-appPath="/etc/apache2/sites-available"
-if [ ! -d "$appPath" ]; then
- echo "$appPath does not exists. Creating directory..."
- mkdir -p $appPath
-fi
-touch $appPath/index.html
-
-figletApp=$(which figlet)
-
-if [ ! -d "$appPath" ]; then
- echo "Web server directory doesn't exist, exiting." | log 1
- exit 1
-fi
-
-if [ -f "$appPath/redmine.conf" ]; then
- echo "redmine.conf file exists. Skipping." | log
- tagScript success
- exit 99
-fi
-
-if [ -z "$figletApp" ]; then
- echo "Figlet is not installed, please install figlet." | log 1
- exit 1
-fi
-
-echo "Adding 'Install in Progress' notice to $appPath/index.html" | log
-echo "Installation Progress " > "$appPath/index.html"
-$figletApp "Install in Progress" >> "$appPath/index.html"
-echo "Please Wait. Application and services installation is in progress, the process will take a couple of minutes to complete. Thank you for your patience. Refresh the page within a couple of minutes for an updated status." >> "$appPath/index.html"
-echo "" >> "$appPath/index.html"
-echo "
" >> "$appPath/index.html"
-
-echo "Reloading Apache2..."
-systemctl reload apache2
-
-tagScript success
-exit 0
+#!/bin/bash
+
+# Add this at the begining of all scripts.
+if [ -f "include/startup.sh" ]; then
+ . include/startup.sh
+elif [ -f "../include/startup.sh" ]; then
+ . ../include/startup.sh
+fi
+
+echo "Installing Figlet..."
+apt update && apt install -y figlet
+
+appPath="/etc/apache2/sites-available"
+if [ ! -d "$appPath" ]; then
+ echo "$appPath does not exists. Creating directory..."
+ mkdir -p $appPath
+fi
+touch $appPath/index.html
+
+figletApp=$(which figlet)
+
+if [ ! -d "$appPath" ]; then
+ echo "Web server directory doesn't exist, exiting." | log 1
+ exit 1
+fi
+
+if [ -f "$appPath/redmine.conf" ]; then
+ echo "redmine.conf file exists. Skipping." | log
+ tagScript success
+ exit 99
+fi
+
+if [ -z "$figletApp" ]; then
+ echo "Figlet is not installed, please install figlet." | log 1
+ exit 1
+fi
+
+echo "Adding 'Install in Progress' notice to $appPath/index.html" | log
+echo "Installation Progress " > "$appPath/index.html"
+$figletApp "Install in Progress" >> "$appPath/index.html"
+echo "Please Wait. Application and services installation is in progress, the process will take a couple of minutes to complete. Thank you for your patience. Refresh the page within a couple of minutes for an updated status." >> "$appPath/index.html"
+echo "" >> "$appPath/index.html"
+echo "
" >> "$appPath/index.html"
+
+echo "Reloading Apache2..."
+systemctl reload apache2
+
+tagScript success
+exit 0
From 32839ad7181c604aae4849f52a65c771302a343b Mon Sep 17 00:00:00 2001
From: Gil Shwartz <58849439+GShwartz@users.noreply.github.com>
Date: Mon, 6 May 2024 22:47:42 +0300
Subject: [PATCH 066/124] Add files via upload
---
services/mysqlserver-8.0-osrepo-withFiglet | 2 +-
services/ruby-latest-offirepo-ruby-dev | 5 +++--
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/services/mysqlserver-8.0-osrepo-withFiglet b/services/mysqlserver-8.0-osrepo-withFiglet
index d7d11756..9482946a 100644
--- a/services/mysqlserver-8.0-osrepo-withFiglet
+++ b/services/mysqlserver-8.0-osrepo-withFiglet
@@ -15,7 +15,7 @@ echo "Updating 'Installing MySQL server 8.0...' notice to $appPath/index.html" |
echo "Installation Progress " > "$appPath/index.html"
$figletApp "Install in Progress" >> "$appPath/index.html"
echo "Please Wait. Installing MySQL server 8.0..." >> "$appPath/index.html"
-echo "" >> "$appPath/index.html"
+echo "" >> "$appPath/index.html"
echo "
" >> "$appPath/index.html"
echo "Reloading Apache2..."
diff --git a/services/ruby-latest-offirepo-ruby-dev b/services/ruby-latest-offirepo-ruby-dev
index 8d76f4e1..e67784fe 100644
--- a/services/ruby-latest-offirepo-ruby-dev
+++ b/services/ruby-latest-offirepo-ruby-dev
@@ -10,10 +10,11 @@ appPath="/etc/apache2/sites-available"
figletApp=$(which figlet)
echo "Updating 'Installing Ruby...' notice to $appPath/index.html" | log
-echo "" > "$appPath/index.html"
echo "Installation Progress " > "$appPath/index.html"
$figletApp "Install in Progress" >> "$appPath/index.html"
-echo "Please Wait. Installing Ruby..." >> "$appPath/index.html"
+echo "Install MySQL server 8.0...[DONE]" >> "$appPath/index.html"
+echo "Please Wait. Installing Ruby 3.2.3..." >> "$appPath/index.html"
+echo "" >> "$appPath/index.html"
echo "
" >> "$appPath/index.html"
echo "Reloading Apache2..."
From 7caf425f56c1d7a7d4e3c9a37fa92b9f8af1f16b Mon Sep 17 00:00:00 2001
From: Gil Shwartz <58849439+GShwartz@users.noreply.github.com>
Date: Mon, 6 May 2024 22:48:13 +0300
Subject: [PATCH 067/124] Add files via upload
---
apps/redmine-5.1.1-offisrc-apache-rails-mysql-8.0 | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/apps/redmine-5.1.1-offisrc-apache-rails-mysql-8.0 b/apps/redmine-5.1.1-offisrc-apache-rails-mysql-8.0
index 1c14c590..b23e0d5c 100644
--- a/apps/redmine-5.1.1-offisrc-apache-rails-mysql-8.0
+++ b/apps/redmine-5.1.1-offisrc-apache-rails-mysql-8.0
@@ -12,10 +12,12 @@ appPath="/etc/apache2/sites-available"
figletApp=$(which figlet)
echo "Updating 'Installing Redmine...' notice to $appPath/index.html" | log
-echo "" > "$appPath/index.html"
echo "Installation Progress " > "$appPath/index.html"
$figletApp "Install in Progress" >> "$appPath/index.html"
-echo "Please Wait. Installing Redmine..." >> "$appPath/index.html"
+echo "Install MySQL server 8.0...[DONE]" >> "$appPath/index.html"
+echo "Install Ruby 3.2.3...[DONE]" >> "$appPath/index.html"
+echo "Please Wait. Installing Redmine 5.1.1..." >> "$appPath/index.html"
+echo "" >> "$appPath/index.html"
echo "
" >> "$appPath/index.html"
echo "Reloading Apache2..."
From 7075ab58bb35261803219343990e614988a30d52 Mon Sep 17 00:00:00 2001
From: Gil Shwartz <58849439+GShwartz@users.noreply.github.com>
Date: Mon, 6 May 2024 22:56:54 +0300
Subject: [PATCH 068/124] Add files via upload
---
apps/redmine-5.1.1-offisrc-apache-rails-mysql-8.0 | 12 +-----------
1 file changed, 1 insertion(+), 11 deletions(-)
diff --git a/apps/redmine-5.1.1-offisrc-apache-rails-mysql-8.0 b/apps/redmine-5.1.1-offisrc-apache-rails-mysql-8.0
index b23e0d5c..b117df5c 100644
--- a/apps/redmine-5.1.1-offisrc-apache-rails-mysql-8.0
+++ b/apps/redmine-5.1.1-offisrc-apache-rails-mysql-8.0
@@ -15,7 +15,7 @@ echo "Updating 'Installing Redmine...' notice to $appPath/index.html" | log
echo "Installation Progress " > "$appPath/index.html"
$figletApp "Install in Progress" >> "$appPath/index.html"
echo "Install MySQL server 8.0...[DONE]" >> "$appPath/index.html"
-echo "Install Ruby 3.2.3...[DONE]" >> "$appPath/index.html"
+echo "Install Ruby 3.2.3.........[DONE]" >> "$appPath/index.html"
echo "Please Wait. Installing Redmine 5.1.1..." >> "$appPath/index.html"
echo "" >> "$appPath/index.html"
echo "
" >> "$appPath/index.html"
@@ -117,14 +117,4 @@ a2ensite redmine
a2dissite figletIDX
systemctl reload apache2
-# Add firewall rule
-echo "Setting up firewall rules..."
-ufw allow 22
-ufw allow 80
-ufw allow 443
-ufw allow 3306
-echo "y" | sudo ufw enable
-ufw reload
-ufw app list
-
echo "Redmine installation is complete. Access it via http://your-server-ip or https://your-server-ip."
\ No newline at end of file
From 23fe20d412507bd7930abe2efb2aa43eb223a0f3 Mon Sep 17 00:00:00 2001
From: Gil Shwartz <58849439+GShwartz@users.noreply.github.com>
Date: Mon, 6 May 2024 22:57:09 +0300
Subject: [PATCH 069/124] Add files via upload
---
include/installInProgressHttpd-apache | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/include/installInProgressHttpd-apache b/include/installInProgressHttpd-apache
index 8b5210a0..9493efcc 100644
--- a/include/installInProgressHttpd-apache
+++ b/include/installInProgressHttpd-apache
@@ -38,8 +38,8 @@ fi
echo "Adding 'Install in Progress' notice to $appPath/index.html" | log
echo "Installation Progress " > "$appPath/index.html"
$figletApp "Install in Progress" >> "$appPath/index.html"
-echo "Please Wait. Application and services installation is in progress, the process will take a couple of minutes to complete. Thank you for your patience. Refresh the page within a couple of minutes for an updated status." >> "$appPath/index.html"
-echo "" >> "$appPath/index.html"
+echo "Please Wait. Application and services installation is in progress, the process will take a couple of minutes to complete. Thank you for your patience." >> "$appPath/index.html"
+echo "" >> "$appPath/index.html"
echo "
" >> "$appPath/index.html"
echo "Reloading Apache2..."
From 3f4d18a6fd60e0e23980688e9e1c85a7cb1bac66 Mon Sep 17 00:00:00 2001
From: Gil Shwartz <58849439+GShwartz@users.noreply.github.com>
Date: Tue, 7 May 2024 08:42:15 +0300
Subject: [PATCH 070/124] Add files via upload
---
apps/redmine-5.1.1-offisrc-apache-rails-mysql-8.0 | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/apps/redmine-5.1.1-offisrc-apache-rails-mysql-8.0 b/apps/redmine-5.1.1-offisrc-apache-rails-mysql-8.0
index b117df5c..a1641ae9 100644
--- a/apps/redmine-5.1.1-offisrc-apache-rails-mysql-8.0
+++ b/apps/redmine-5.1.1-offisrc-apache-rails-mysql-8.0
@@ -24,7 +24,10 @@ echo "Reloading Apache2..."
systemctl reload apache2
# Variables
-DB_ROOT_PASS="Pass1234!"
+DB_ROOT_PASS="${ADMINPASSWORD}"
+echo "${ADMINPASSWORD}"
+exit 0
+
DB_REDMINE_PASS="redmine"
REPO_URL="https://www.redmine.org/releases/redmine-5.1.1.tar.gz"
REPO_DIR="/opt/redmine"
From f02d01133e1f13d6c96ed3df8cc5062c9d37a53a Mon Sep 17 00:00:00 2001
From: Gil Shwartz <58849439+GShwartz@users.noreply.github.com>
Date: Tue, 7 May 2024 09:04:19 +0300
Subject: [PATCH 071/124] Add files via upload
---
apps/redmine-5.1.1-offisrc-apache-rails-mysql-8.0 | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/apps/redmine-5.1.1-offisrc-apache-rails-mysql-8.0 b/apps/redmine-5.1.1-offisrc-apache-rails-mysql-8.0
index a1641ae9..b117df5c 100644
--- a/apps/redmine-5.1.1-offisrc-apache-rails-mysql-8.0
+++ b/apps/redmine-5.1.1-offisrc-apache-rails-mysql-8.0
@@ -24,10 +24,7 @@ echo "Reloading Apache2..."
systemctl reload apache2
# Variables
-DB_ROOT_PASS="${ADMINPASSWORD}"
-echo "${ADMINPASSWORD}"
-exit 0
-
+DB_ROOT_PASS="Pass1234!"
DB_REDMINE_PASS="redmine"
REPO_URL="https://www.redmine.org/releases/redmine-5.1.1.tar.gz"
REPO_DIR="/opt/redmine"
From d8facc18ad8ff70f596abfad686374a4d6a5492f Mon Sep 17 00:00:00 2001
From: Gil Shwartz <58849439+GShwartz@users.noreply.github.com>
Date: Tue, 7 May 2024 10:11:49 +0300
Subject: [PATCH 072/124] Add files via upload
---
apps/redmine-5.1.1-offisrc-apache-rails-mysql-8.0 | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/apps/redmine-5.1.1-offisrc-apache-rails-mysql-8.0 b/apps/redmine-5.1.1-offisrc-apache-rails-mysql-8.0
index b117df5c..d1815666 100644
--- a/apps/redmine-5.1.1-offisrc-apache-rails-mysql-8.0
+++ b/apps/redmine-5.1.1-offisrc-apache-rails-mysql-8.0
@@ -24,7 +24,7 @@ echo "Reloading Apache2..."
systemctl reload apache2
# Variables
-DB_ROOT_PASS="Pass1234!"
+DB_ROOT_PASS="${ADMINPASSWORD}"
DB_REDMINE_PASS="redmine"
REPO_URL="https://www.redmine.org/releases/redmine-5.1.1.tar.gz"
REPO_DIR="/opt/redmine"
@@ -60,7 +60,6 @@ _EOF_
# Install gems
gem install bundler
-cd ${REPO_DIR}
bundle config set --local without 'development test'
bundle install
@@ -112,9 +111,8 @@ _EOF_
# Enable Redmine site, disable default site
echo "Enabling redmine site & disabling defaults..."
-#a2enmod ssl
a2ensite redmine
a2dissite figletIDX
systemctl reload apache2
-echo "Redmine installation is complete. Access it via http://your-server-ip or https://your-server-ip."
\ No newline at end of file
+echo "Redmine installation is complete."
\ No newline at end of file
From 0856f91eae15e21b615bcf00b747a2b7988ee9d7 Mon Sep 17 00:00:00 2001
From: Gil Shwartz <58849439+GShwartz@users.noreply.github.com>
Date: Tue, 7 May 2024 10:12:08 +0300
Subject: [PATCH 073/124] Add files via upload
---
services/mysqlserver-8.0-osrepo-withFiglet | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/services/mysqlserver-8.0-osrepo-withFiglet b/services/mysqlserver-8.0-osrepo-withFiglet
index 9482946a..8bac5695 100644
--- a/services/mysqlserver-8.0-osrepo-withFiglet
+++ b/services/mysqlserver-8.0-osrepo-withFiglet
@@ -22,7 +22,7 @@ echo "Reloading Apache2..."
systemctl reload apache2
echo "Create temp swap for composer processes" | log
-#increase vm swappiness to allow swap to dominate process
+# Increase vm swappiness to allow swap to dominate process
sudo fallocate -l 2G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
@@ -42,7 +42,7 @@ if [ ! -f ~/.my.cnf ]; then
cat << EOF > ~/.my.cnf
[client]
user=root
-password='${ADMINPASSWORD}'
+password="${ADMINPASSWORD}"
EOF
fi
From b8e1f5db0d9e29a558b276844cf6f36bda70cb8a Mon Sep 17 00:00:00 2001
From: Gil Shwartz <58849439+GShwartz@users.noreply.github.com>
Date: Tue, 7 May 2024 10:35:00 +0300
Subject: [PATCH 074/124] Add files via upload
From 2dc13b58fb229e320569581668cda32aa255edf3 Mon Sep 17 00:00:00 2001
From: Gil Shwartz <58849439+GShwartz@users.noreply.github.com>
Date: Tue, 7 May 2024 10:35:21 +0300
Subject: [PATCH 075/124] Add files via upload
---
apps/redmine-5.1.1-offisrc-apache-rails-mysql-8.0 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/apps/redmine-5.1.1-offisrc-apache-rails-mysql-8.0 b/apps/redmine-5.1.1-offisrc-apache-rails-mysql-8.0
index d1815666..85a74b6b 100644
--- a/apps/redmine-5.1.1-offisrc-apache-rails-mysql-8.0
+++ b/apps/redmine-5.1.1-offisrc-apache-rails-mysql-8.0
@@ -17,7 +17,7 @@ $figletApp "Install in Progress" >> "$appPath/index.html"
echo "Install MySQL server 8.0...[DONE]" >> "$appPath/index.html"
echo "Install Ruby 3.2.3.........[DONE]" >> "$appPath/index.html"
echo "Please Wait. Installing Redmine 5.1.1..." >> "$appPath/index.html"
-echo "" >> "$appPath/index.html"
+echo "" >> "$appPath/index.html"
echo " " >> "$appPath/index.html"
echo "Reloading Apache2..."
From 846699d8bdd9c9ce2efacaecab99cfa0c1a834c5 Mon Sep 17 00:00:00 2001
From: Gil Shwartz <58849439+GShwartz@users.noreply.github.com>
Date: Tue, 7 May 2024 10:35:47 +0300
Subject: [PATCH 076/124] Add files via upload
---
include/installInProgressHttpd-apache | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/include/installInProgressHttpd-apache b/include/installInProgressHttpd-apache
index 9493efcc..71d7ef24 100644
--- a/include/installInProgressHttpd-apache
+++ b/include/installInProgressHttpd-apache
@@ -39,7 +39,8 @@ echo "Adding 'Install in Progress' notice to $appPath/index.html" | log
echo "" > "$appPath/index.html" $figletApp "Install in Progress" >> "$appPath/index.html" echo "Please Wait. Application and services installation is in progress, the process will take a couple of minutes to complete. Thank you for your patience." >> "$appPath/index.html" -echo "" >> "$appPath/index.html" +echo "Installing initial dependencies..." >> "$appPath/index.html" +echo "" >> "$appPath/index.html" echo "" >> "$appPath/index.html" echo "Reloading Apache2..." From a49de5832d90596ed124f7b7dff111c6cbc76aa7 Mon Sep 17 00:00:00 2001 From: Gil Shwartz <58849439+GShwartz@users.noreply.github.com> Date: Tue, 7 May 2024 10:36:39 +0300 Subject: [PATCH 077/124] Add files via upload --- services/mysqlserver-8.0-osrepo-withFiglet | 2 +- services/ruby-latest-offirepo-ruby-dev | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/services/mysqlserver-8.0-osrepo-withFiglet b/services/mysqlserver-8.0-osrepo-withFiglet index 8bac5695..0657cc07 100644 --- a/services/mysqlserver-8.0-osrepo-withFiglet +++ b/services/mysqlserver-8.0-osrepo-withFiglet @@ -15,7 +15,7 @@ echo "Updating 'Installing MySQL server 8.0...' notice to $appPath/index.html" | echo "
" > "$appPath/index.html" $figletApp "Install in Progress" >> "$appPath/index.html" echo "Please Wait. Installing MySQL server 8.0..." >> "$appPath/index.html" -echo "" >> "$appPath/index.html" +echo "" >> "$appPath/index.html" echo "" >> "$appPath/index.html" echo "Reloading Apache2..." diff --git a/services/ruby-latest-offirepo-ruby-dev b/services/ruby-latest-offirepo-ruby-dev index e67784fe..a8c13acb 100644 --- a/services/ruby-latest-offirepo-ruby-dev +++ b/services/ruby-latest-offirepo-ruby-dev @@ -14,7 +14,7 @@ echo "
Installation Progress " > "$appPath/index.html" $figletApp "Install in Progress" >> "$appPath/index.html" -echo "Install MySQL server 8.0...[DONE]" >> "$appPath/index.html" -echo "Install Ruby 3.2.3.........[DONE]" >> "$appPath/index.html" +echo "Please Wait. Application and services installation is in progress, the process will take a couple of minutes to complete. Thank you for your patience." >> "$appPath/index.html" +echo "Installing initial dependencies............[DONE]" >> "$appPath/index.html" +echo "Install MySQL server 8.0...................[DONE]" >> "$appPath/index.html" +echo "Install Ruby 3.2.3.........................[DONE]" >> "$appPath/index.html" echo "Please Wait. Installing Redmine 5.1.1..." >> "$appPath/index.html" echo "" >> "$appPath/index.html" echo "" >> "$appPath/index.html" From d88bb1f1bda7420c05dcb4031e84686ba0ccf3db Mon Sep 17 00:00:00 2001 From: Gil Shwartz <58849439+GShwartz@users.noreply.github.com> Date: Tue, 7 May 2024 10:53:37 +0300 Subject: [PATCH 079/124] Add files via upload From 3c386174f0e5fb5aa1baccac1841e0e82f6cb2da Mon Sep 17 00:00:00 2001 From: Gil Shwartz <58849439+GShwartz@users.noreply.github.com> Date: Tue, 7 May 2024 10:54:21 +0300 Subject: [PATCH 080/124] Add files via upload --- services/mysqlserver-8.0-osrepo-withFiglet | 2 ++ services/ruby-latest-offirepo-ruby-dev | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/services/mysqlserver-8.0-osrepo-withFiglet b/services/mysqlserver-8.0-osrepo-withFiglet index 0657cc07..b32b6478 100644 --- a/services/mysqlserver-8.0-osrepo-withFiglet +++ b/services/mysqlserver-8.0-osrepo-withFiglet @@ -14,6 +14,8 @@ figletApp=$(which figlet) echo "Updating 'Installing MySQL server 8.0...' notice to $appPath/index.html" | log echo "Installation Progress " > "$appPath/index.html" $figletApp "Install in Progress" >> "$appPath/index.html" +echo "Please Wait. Application and services installation is in progress, the process will take a couple of minutes to complete. Thank you for your patience." >> "$appPath/index.html" +echo "Installing initial dependencies............[DONE]" >> "$appPath/index.html" echo "Please Wait. Installing MySQL server 8.0..." >> "$appPath/index.html" echo "" >> "$appPath/index.html" echo "" >> "$appPath/index.html" diff --git a/services/ruby-latest-offirepo-ruby-dev b/services/ruby-latest-offirepo-ruby-dev index a8c13acb..95be1bff 100644 --- a/services/ruby-latest-offirepo-ruby-dev +++ b/services/ruby-latest-offirepo-ruby-dev @@ -12,7 +12,9 @@ figletApp=$(which figlet) echo "Updating 'Installing Ruby...' notice to $appPath/index.html" | log echo "Installation Progress " > "$appPath/index.html" $figletApp "Install in Progress" >> "$appPath/index.html" -echo "Install MySQL server 8.0...[DONE]" >> "$appPath/index.html" +echo "Please Wait. Application and services installation is in progress, the process will take a couple of minutes to complete. Thank you for your patience." >> "$appPath/index.html" +echo "Installing initial dependencies............[DONE]" >> "$appPath/index.html" +echo "Install MySQL server 8.0...................[DONE]" >> "$appPath/index.html" echo "Please Wait. Installing Ruby 3.2.3..." >> "$appPath/index.html" echo "" >> "$appPath/index.html" echo "" >> "$appPath/index.html" From c6d196f07e637c37af1ca3ccf5a33eaa9b2cf3fb Mon Sep 17 00:00:00 2001 From: Gil Shwartz <58849439+GShwartz@users.noreply.github.com> Date: Tue, 7 May 2024 14:20:18 +0300 Subject: [PATCH 081/124] Add files via upload --- apps/redmine-5.1.1-offisrc-apache-rails-mysql-8.0 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apps/redmine-5.1.1-offisrc-apache-rails-mysql-8.0 b/apps/redmine-5.1.1-offisrc-apache-rails-mysql-8.0 index 04f034ed..8270d459 100644 --- a/apps/redmine-5.1.1-offisrc-apache-rails-mysql-8.0 +++ b/apps/redmine-5.1.1-offisrc-apache-rails-mysql-8.0 @@ -19,6 +19,10 @@ echo "Installing initial dependencies............[DONE]" >> "$appPath/index.html echo "Install MySQL server 8.0...................[DONE]" >> "$appPath/index.html" echo "Install Ruby 3.2.3.........................[DONE]" >> "$appPath/index.html" echo "Please Wait. Installing Redmine 5.1.1..." >> "$appPath/index.html" +echo "=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=" >> "$appPath/index.html" +echo "Username: admin" >> "$appPath/index.html" +echo "Default password (You will be required to change that on first login): admin" >> "$appPath/index.html" +echo "=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=" >> "$appPath/index.html" echo "" >> "$appPath/index.html" echo "