This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Upgrading ZPanel 10.1.* to Sentora - Alpha/Beta
RE: Upgrading ZPanel 10.1.* to Sentora - Alpha/Beta

I revert the server.

I was anylizing the log and have some questions:

Why this?
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.

#--- 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 "/[\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
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:?
mysqlpassword=$(cat /etc/sentora/panel/cnf/db.php | grep "pass" | cut -d \' -f 2);
so this:
if [ -z "$mysqlpassword" ]; then
   mysqladmin -u root password "$mysqlpassword"
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
Thanks given by:

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 v2.0.1 Released! TGates 2 2 ,465 05-23-2024, 12:26 PM
Last Post: TGates
Sentora v2.0.2 SitRep TGates 4 2 ,123 05-04-2024, 06:05 PM
Last Post: TGates
Sentora for Developers TGates 0 1 ,727 02-12-2024, 12:10 PM
Last Post: TGates

Forum Jump:

Users browsing this thread: 5 Guest(s)