Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - overseer

Pages: 1 ... 69 70 [71]
1051
CentOS-WebPanel GUI / Re: Dark Theme
« on: May 15, 2020, 04:30:09 PM »
I wrote to the developer of the CWP Dark Theme variant on GitHub with some suggestions, but I'll post this here, too. As others point out, the admin theme customizations are overwritten with each update, so you have to call this script via cron after the update or manually run this script to re-apply the dark theme. I took the opportunity to clean up his code a bit, but this is what I am using.

Create the file:
Code: [Select]
/scripts/dark_cwpSet it as executable:
Code: [Select]
chmod +x /scripts/dark_cwp
Here is the updated script:
Code: [Select]
#!/bin/bash

#=====================================#
# StingRay's Total Dark Theme for CWP #
#=====================================#

# Need to be a sudoer/root
sudo -p "Please authenticate to enable CWP Dark Theme (admin password): " printf "" || {
        echo "Abort: could not authenticate" >&2
        exit 1
}
echo "Applying Dark Theme to CWP..."

sudo chattr -i /usr/local/cwpsrv/htdocs/admin/design/css/custom.css
sudo chmod 644 /usr/local/cwpsrv/htdocs/admin/design/css/custom.css
sudo tee -a /usr/local/cwpsrv/htdocs/admin/design/css/custom.css <<'END' > /dev/null

/* DARK THEME */

html,.deleted
{
background:#000;
-webkit-filter:invert(1) hue-rotate(180deg)!important;
-moz-filter:invert(1) hue-rotate(180deg)!important;
filter:invert(1) hue-rotate(180deg)!important;
filter:progid:DXImageTransform.Microsoft.BasicImage(grayscale=0,xray=0,mirror=0,invert=1,opacity=1,rotation=2)!important;
-webkit-transition:100ms ease all;
transition:100ms ease all;
-o-transition-duration:100ms ease all
}

img,embed[flashvars],[type*=\"application/x-shockwave-flash\"],[type*=\"application/x-silverlight\"]
{
-webkit-filter:invert(1) hue-rotate(180deg)!important;
-moz-filter:invert(1) hue-rotate(180deg)!important;
filter:invert(1) hue-rotate(180deg)!important;
filter:progid:DXImageTransform.Microsoft.BasicImage(grayscale=0,xray=0,mirror=0,invert=1,opacity=1,rotation=2)!important;
}

tr > td > a > img,th > a > img
{
filter:url(\"data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'invert\'><feColorMatrix type=\'matrix\' values=\'-1 0 0 0 1 0 -1 0 0 1 0 0 -1 0 1 0 0 0 1 0\$filter:progid:DXImageTransform.Microsoft.BasicImage(grayscale=0,xray=0,mirror=0,invert=0,opacity=1,rotation=2)!important
}

END

sudo chattr +i /usr/local/cwpsrv/htdocs/admin/design/css/custom.css
echo "Dark Theme applied successfully!"

1052
Suggestions / Re: Customize CSS in admin panel
« on: May 15, 2020, 04:23:09 PM »
You have to remove the immutable bit before making changes to the CSS files; and it is better practice to add to custom.css
Code: [Select]
sudo chattr -i /usr/local/cwpsrv/htdocs/admin/design/css/custom.css
sudo chmod 644 /usr/local/cwpsrv/htdocs/admin/design/css/custom.css

As mentioned, updates wipe out this file, so you have to call cron after updates to re-inject your code. Put something like this in a script:
Code: [Select]
sudo chattr -i /usr/local/cwpsrv/htdocs/admin/design/css/custom.css
sudo chmod 644 /usr/local/cwpsrv/htdocs/admin/design/css/custom.css
sudo tee -a /usr/local/cwpsrv/htdocs/admin/design/css/custom.css <<'END' > /dev/null

/* CSS CUSTOMIZATIONS */
{ blah }
END
(I am using this to inject the dark_cwp customizations into the CSS.)

1053
Migration from other control panels / HH : MM : SS
« on: May 13, 2020, 10:33:02 PM »
No specific HH : MM : SS ? Just any random time?
Is it typically Croatia (GMT +2) working hours?

1054
CentOS-WebPanel Bugs / Apache vhosts contain typo
« on: May 13, 2020, 10:19:27 PM »
Every Apache vhost in /usr/local/apache/conf.d/vhosts/ contains a typo:
Code: [Select]
ProxyPassReverse /roundcube https://127.0.0.1:2031/roudcube/should be
Code: [Select]
ProxyPassReverse /roundcube https://127.0.0.1:2031/roundcube/(missing the n in roundcube )

1055
Migration from other control panels / new version?
« on: May 13, 2020, 10:15:24 PM »
I've been running a CWP server for a year now, but haven't really gotten into the forum or really had many issues until now. Now I am attempting to move several cPanel VPS servers into CWP-driven VMs and running into migration issues.

So when is the nightly update release schedule?

1056
That would seem to be key info -- make sure you convert MDBOX format e-mail to Maildir before attempting a cPanel backup for account move or the cPanel Server Migration to CWP routine.

After my failed migration attempt, I do not have working e-mail accounts showing, but I do have 30GB of e-mail files. It does look as though the permissions are screwy, so I ran this in a vain attempt to get the mail to show in the CWP User side:
Code: [Select]
chown -R vmail.mail /var/vmail
find /var/vmail -type f -exec chmod 644 {} \;
find /var/vmail -type f -exec chmod 644 {} \;

1057
Likewise, I attempted a cPanel Server Migration yesterday. Everything generally came across -- packages, accounts, site files, DB, certs, etc. Actual mail shows up in /var/vmail and even e-mail Aliases were created. However, e-mail accounts DO NOT show up in the CWP User Panel, so this is a deal-breaker for me. I am really hoping to be able to move off of several cPanel/WHM VPSes I maintain and over to CWP VMs instead!

Support ticket is in.

Pages: 1 ... 69 70 [71]