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
#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
Reply
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 1.0.3 & critical patch for sentora 1.0.x Me.B 24 57,871 10-11-2015, 10:20 PM
Last Post: Finallf
From ZPanel upto Sentora 5050 41 79,802 09-18-2015, 08:21 PM
Last Post: kandrews
Sentora 1.0.0 patch (Centos 6.x Only) Me.B 9 27,827 04-01-2015, 12:04 PM
Last Post: akong

Forum Jump:


Users browsing this thread: 1 Guest(s)