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 v2.1.0 sitrep TGates 3 1 ,444 10-21-2024, 05:08 PM
Last Post: TGates
Sentora update Information TGates 3 3 ,078 09-19-2024, 11:27 AM
Last Post: jennybaso
v2.0.0 Closed Beta testing now ready! TGates 10 30 ,770 09-19-2024, 11:24 AM
Last Post: jennybaso

Forum Jump:


Users browsing this thread: 15 Guest(s)