Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

updated scripts

adam-op6f007d8f21b8
diff --git a/docs/enterprise-guide/enterprise-cloud-guide/backups/script/backup-via-apiv3.sh b/docs/enterprise-guide/enterprise-cloud-guide/backups/script/backup-via-apiv3.sh
index fa6b1c8bf98..d1ff83d011d 100644
--- a/docs/enterprise-guide/enterprise-cloud-guide/backups/script/backup-via-apiv3.sh
+++ b/docs/enterprise-guide/enterprise-cloud-guide/backups/script/backup-via-apiv3.sh
@@ -1,4 +1,4 @@
-```bash
+bash
#!/bin/bash
#Scope is to pull a backup from an OpenProject Enterprise on-premises or cloud installation and download it to a local path
@@ -43,4 +43,4 @@ download_url="https://$domain$download_path"
curl -u apikey:$api_key -L $download_url > "openproject-`date | tr ' ' '-' | tr ':' '-'`.zip"
echo "download complete"
-```
\ No newline at end of file
+
diff --git a/docs/enterprise-guide/enterprise-on-premises-guide/support/installation-support/script/op-support-data.sh b/docs/enterprise-guide/enterprise-on-premises-guide/support/installation-support/script/op-support-data.sh
index 04de1e53a0d..b0329a1f254 100644
--- a/docs/enterprise-guide/enterprise-on-premises-guide/support/installation-support/script/op-support-data.sh
+++ b/docs/enterprise-guide/enterprise-on-premises-guide/support/installation-support/script/op-support-data.sh
@@ -1,4 +1,3 @@
-```bash
#!/bin/bash
#Scope is to discover the user's environment for a future or existing OpenProject Enterprise on-premises packaged installation running on Linux
@@ -6,6 +5,13 @@
#VERBOSE LOGGING
#set -x
+hash netcat 2>/dev/null
+if [ $? == 1 ]; then
+ echo
+ echo "Please install netcat (apt install netcat, yum install netcat) as this script depends on netcat. Thank you."
+ exit
+fi
+
#PSQL
read -p "Please specify the IP/FQDN of the PSQL server, if the internal PSQL server of OpenProject is used press ENTER [127.0.0.1]: " psqlserver
psqlserver=${psqlserver:-127.0.0.1}
@@ -18,13 +24,13 @@ read -p "Please specify if your own web server is used for terminating SSL, if t
ownwebserver=${ownwebserver:-N}
if [ "$ownwebserver" != "${ownwebserver#[Nn]}" ]; then
-echo
-echo As OpenProject will configure the webserver, SSL certificate and key need to be provided:
+ echo
+ echo As OpenProject will configure the webserver, SSL certificate and key need to be provided:
# LETSENCRYPT!
-read -p "Enter SSL Certificate (incl. full path) [/etc/ssl/certs/ssl-cert-snakeoil.pem]: " ssl_certificate
-ssl_certificate=${ssl_certificate:-/etc/ssl/certs/ssl-cert-snakeoil.pem}
-read -p "Enter SSL Key (incl. full path) [/etc/ssl/private/ssl-cert-snakeoil.key]: " ssl_key
-ssl_key=${ssl_key:-/etc/ssl/private/ssl-cert-snakeoil.key}
+ read -p "Enter SSL Certificate (incl. full path) [/etc/ssl/certs/ssl-cert-snakeoil.pem]: " ssl_certificate
+ ssl_certificate=${ssl_certificate:-/etc/ssl/certs/ssl-cert-snakeoil.pem}
+ read -p "Enter SSL Key (incl. full path) [/etc/ssl/private/ssl-cert-snakeoil.key]: " ssl_key
+ ssl_key=${ssl_key:-/etc/ssl/private/ssl-cert-snakeoil.key}
fi
#SSO SOLUTION
@@ -32,10 +38,10 @@ echo
read -p "Please specify if there is an SSO solution like SAML/LDAP/OpenID for authenticating in OpenProject [N,y]: " ssosolution
ssosolution=${ssosolution:-N}
if [ "$ssosolution" != "${ssosolution#[Yy]}" ]; then
-echo
-echo As OpenProject will connect to the SSO host we need some details to be provided:
-read -p "Enter SSO host IP/FQDN: " ssoserver
-read -p "Enter SSO host Port: " ssoport
+ echo
+ echo As OpenProject will connect to the SSO host we need some details to be provided:
+ read -p "Enter SSO host IP/FQDN: " ssoserver
+ read -p "Enter SSO host Port: " ssoport
fi
#OUTGOING MAILS
@@ -43,10 +49,10 @@ echo
read -p "Please specify if outgoing e-mails are used (SMTP) [Y,n]: " outgoingmail
outgoingmail=${outgoingmail:-Y}
if [ "$outgoingmail" != "${outgoingmail#[Yy]}" ]; then
-echo
-echo As OpenProject will send e-mails we need some details to be provided:
-read -p "Enter SMTP host IP/FQDN: " outgoingmailip
-read -p "Enter SMTP host Port: " outgoingmailport
+ echo
+ echo As OpenProject will send e-mails we need some details to be provided:
+ read -p "Enter SMTP host IP/FQDN: " outgoingmailip
+ read -p "Enter SMTP host Port: " outgoingmailport
fi
#INCOMING MAILS
@@ -54,10 +60,10 @@ echo
read -p "Please specify if incoming e-mails are used (IMAP/POP3) [Y,n]: " incomingmail
incomingmail=${incomingmail:-Y}
if [ "$incomingmail" != "${incomingmail#[Yy]}" ]; then
-echo
-echo As OpenProject shall receive e-mails we need some details to be provided:
-read -p "Enter IMAP/POP3 host IP/FQDN: " incomingmailip
-read -p "Enter IMAP/POP3 host Port: " incomingmailport
+ echo
+ echo As OpenProject shall receive e-mails we need some details to be provided:
+ read -p "Enter IMAP/POP3 host IP/FQDN: " incomingmailip
+ read -p "Enter IMAP/POP3 host Port: " incomingmailport
fi
#S3 CLOUD STORAGE
@@ -113,19 +119,22 @@ echo "---"
#CHECK WEBSERVER ON LOCALHOST PORTS 80 AND 443
echo 'Checking Port 80,443 on IP 127.0.0.1 reachable? (succeeded = reachable)'
-netcat -z -v 127.0.0.1 80 443 2>&1
+netcat -z -v 127.0.0.1 80 2>&1
+netcat -z -v 127.0.0.1 443 2>&1
echo "---"
#CHECK WEBSERVER ON OTHER IPS
for ip in `ip a | grep "inet " | grep " e" | awk -F" " '{print $2}' | cut -d'/' -f1`; do
echo 'Checking Port 80,443 on IP '$ip' reachable? (succeeded = reachable)'
-netcat -z -v $ip 80 443 2>&1
+netcat -z -v $ip 80 2>&1
+netcat -z -v $ip 443 2>&1
done
echo "---"
#CHECK packager.io ACCESS FROM LOCALHOST FOR UPGRADES
echo packager.io web server is reachable on ports 80,443
-netcat -z -v packager.io 80 443 2>&1
+netcat -z -v packager.io 80 2>&1
+netcat -z -v packager.io 443 2>&1
echo "---"
#CHECK PSQL REACHABILITY
@@ -134,35 +143,48 @@ echo 'SELECT version();QUIT' | netcat $psqlserver $psqlserverport; echo $?
echo "---"
#CHECK SSO REACHABILITY
-echo 'SSO server on IP/FQDN '$ssoserver' port '$ssoport' reachable? (succeeded = reachable)'
-netcat -z -v $ssoserver $ssoport 2>&1
-echo "---"
+if [ "$ssosolution" != "${ssosolution#[Yy]}" ]; then
+ echo 'SSO server on IP/FQDN '$ssoserver' port '$ssoport' reachable? (succeeded = reachable)'
+ netcat -z -v $ssoserver $ssoport 2>&1
+ echo "---"
+fi
#CHECK SMTP REACHABILITY
-echo 'SMTP server on IP/FQDN '$outgoingmailip' port '$outgoingmailport' reachable? (succeeded = reachable)'
-netcat -z -v $outgoingmailip $outgoingmailport 2>&1
-echo "---"
+if [ "$outgoingmail" != "${outgoingmail#[Yy]}" ]; then
+ echo 'SMTP server on IP/FQDN '$outgoingmailip' port '$outgoingmailport' reachable? (succeeded = reachable)'
+ netcat -z -v $outgoingmailip $outgoingmailport 2>&1
+ echo "---"
+fi
#CHECK POP3/IMAP REACHABILITY
-echo 'POP3/IMAP server on IP/FQDN '$incomingmailip' port '$incomingmailport' reachable? (succeeded = reachable)'
-netcat -z -v $incomingmailip $incomingmailport 2>&1
-echo "---"
+if [ "$incomingmail" != "${incomingmail#[Yy]}" ]; then
+ echo 'POP3/IMAP server on IP/FQDN '$incomingmailip' port '$incomingmailport' reachable? (succeeded = reachable)'
+ netcat -z -v $incomingmailip $incomingmailport 2>&1
+ echo "---"
+fi
#SSL/TLS CERTS AVAILABLE
if [ "$ownwebserver" != "${ownwebserver#[Nn]}" ]; then
-echo Search for SSL certificate $ssl_certificate
-find $ssl_certificate
-echo Search for SSL key $ssl_key
-find $ssl_key
-openssl x509 -in $ssl_certificate -noout -text
-openssl rsa -in $ssl_key -noout -text
-openssl x509 -noout -modulus -in $ssl_certificate | openssl md5
-openssl rsa -noout -modulus -in $ssl_key | openssl md5
+ echo Search for SSL certificate $ssl_certificate
+ find $ssl_certificate
+ echo Search for SSL key $ssl_key
+ find $ssl_key
+ openssl x509 -in $ssl_certificate -noout -text
+ openssl rsa -in $ssl_key -noout -text
+ openssl x509 -noout -modulus -in $ssl_certificate | openssl md5
+ openssl rsa -noout -modulus -in $ssl_key | openssl md5
fi
#CHECK LOCAL MEMCACHED CONFIG
-echo Search for /etc/memcached.conf
-find /etc/memcached.conf
+echo
+echo Search for memcached
+
+hash memcached 2>/dev/null
+if [ $? == 1 ]; then
+ echo "memcached is NOT installed"
+else
+ echo "memcached is installed"
+fi
echo "---"
#CHECK FOR INSTALLED OPENPROJECT
@@ -178,8 +200,8 @@ if [ -f $apt_fp ]; then $apt_fp list --installed | grep openproject; fi
openproject_fp=`which openproject`
if [ -z $openproject_fp ]; then openproject_fp="dummynonexists"; fi
if [ -f $openproject_fp ];
- then echo OpenProject is installed in Version...; $openproject_fp run bundle exec rake version
+ then echo OpenProject is installed in Version...; $openproject_fp run bundle exec rake version
else
- echo "Open Project seems not to be installed."
+ echo "Open Project seems not to be installed."
fi
-```
\ No newline at end of file
+