| Server IP : 104.129.129.72 / Your IP : 216.73.216.229 Web Server : LiteSpeed System : Linux 123answers 5.15.0-143-generic #153-Ubuntu SMP Fri Jun 13 19:10:45 UTC 2025 x86_64 User : answe8064 ( 1002) PHP Version : 8.2.28 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /opt/installer/apps/ |
Upload File : |
#!/bin/bash
if [ -f "include/startup.sh" ]; then
. include/startup.sh
elif [ -f "../include/startup.sh" ]; then
. ../include/startup.sh
fi
aptSourceList=/etc/apt/sources.list.d/zentyal.list
rootDir=$(rootDir)
echo "Add Zentyal 6.0 repository" | log
curlDownload http://keys.zentyal.org/zentyal-6.0-archive.asc
waitOrStop 0 "Key not downloaded from official source"
apt-key add zentyal-6.0-archive.asc
echo "deb http://archive.zentyal.org/zentyal 6.0 main" >> $aptSourceList
apt update | log
waitOrStop 0 "Couldn't update source list"
echo "Modifying hostname to fit max 64 chars requirement" | log
savedHostname=$(hostname)
hostnamectl set-hostname ${savedHostname::32}
echo "Installing Zentyal 6.0" | log
debconf-set-selections <<< "zentyal-core zentyal-core/port string 8443"
installPackage zentyal zentyal-network
waitOrStop 0 "Failed apt install: zentyal"
echo "Creating admin user and disabling root" | log
useradd admin -s /bin/bash -m -g users -G sudo
chpasswd <<< "admin:${ADMINPASSWORD}"
passwd -l root
echo "Fixing DNS Resolver" | log
sed '/gateway/a dns-nameservers 8.8.8.8 8.8.4.4' -i /etc/network/interfaces
echo "Ensuring conntrack modules are enabled" | log
echo ip_conntrack | sudo tee -a /etc/modules
echo "Adding descriptions" | log
descriptionAppend "Zentyal Admin URI: https://${CWM_SERVERIP}:8443"
descriptionAppend "Zentyal Admin User: admin"
descriptionAppend "Zentyal Admin Password: ${ADMINPASSWORD}"
descriptionAppend " "
tagScript success
exit 0