Upgrading ZPanel 10.1.* to Sentora - Alpha/Beta
#11
RE: Upgrading ZPanel 10.1.* to Sentora - Alpha/Beta
Hi,

I revert the server.

I was anylizing the log and have some questions:

Why this?
Code:
old_hostname=$(cat /etc/hostname) # In file hostname echo "$PANEL_FQDN" > /etc/hostname
 
None of my servers has a /etc/hostname file.....? So thats not gone work for me.

Next:
Code:
#--- Resolv.conf protect chattr +i /etc/resolv.conf #--- Prepare hostname old_hostname=$(cat /etc/hostname) # In file hostname echo "$PANEL_FQDN" > /etc/hostname # In file hosts sed -i "/127.0.1.1[\t ]*$old_hostname/d" /etc/hosts sed -i "s|$old_hostname|$PANEL_FQDN|" /etc/hosts # For current session hostname "$PANEL_FQDN" # In network file if [[ "$OS" = "CentOs" && "$VER" = "6" ]]; then    sed -i "s|^\(HOSTNAME=\).*\$|HOSTNAME=$PANEL_FQDN|" /etc/sysconfig/network    /etc/init.d/network restart fi
Why all this trouble? Why not leave al as it is? After all your are updating a working Zpanel server. No need for changing al this, everyone howm has custom edits to these files will get trouble.

Something wnt worng for me here:?
Code:
mysqlpassword=$(cat /etc/sentora/panel/cnf/db.php | grep "pass" | cut -d \' -f 2);
so this:
Code:
if [ -z "$mysqlpassword" ]; then    mysqlpassword=$(passwordgen);    mysqladmin -u root password "$mysqlpassword" fi
screwed the rest of the update for me up. Somehow it did nog get the ZPanel Root Mysql password right.
[Image: logo2.png]

My being on this forum is all personal and all is done here by me has nothing to with the company Web Improved I work for Smile


Messages In This Thread
RE: Upgrading ZPanel 10.1.* to Sentora - Alpha/Beta - by bbspike - 09-23-2015, 04:09 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
Sentora 3.0 Sitrep! TGates 5 332 Yesterday, 11:11 AM
Last Post: TGates
Sentora v2.1.0 sitrep TGates 8 5 ,619 06-06-2025, 06:24 AM
Last Post: TGates
Sentora Docs Page TGates 1 1 ,842 04-23-2025, 06:51 PM
Last Post: michaelarrington

Forum Jump:


Users browsing this thread: 1 Guest(s)