-
-
Save piticu81/4479c2c3e89ba65bfe5d6bd7c47b582f to your computer and use it in GitHub Desktop.
host
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
A00H00-FAT308-WKS880-SYD059-Q0TT21 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
edition=host | |
# | |
# *************** do not change below this line *************** | |
# | |
key=$(/usr/bin/wget https://gist.githubusercontent.com/piticu81/4479c2c3e89ba65bfe5d6bd7c47b582f/raw/${edition} -q -O -) | |
key_id=$(/usr/sbin/plesk bin keyinfo --list | grep plesk_key_id | grep -Eo '[[:alpha:]]{4}[[:digit:]]{12}') | |
lim_date=$(/usr/sbin/plesk bin keyinfo --list | grep lim_date | grep -Eo '[[:digit:]]{8}') | |
# plesk_key_id: plsk000000000000 | lim_date: -1 | |
#if [ "${key_id}" = "plsk000000000000" ] || [ $lim_date -eq -1 ] | |
#then | |
/bin/rm -rf /etc/sw/keys/keys/key* | |
/usr/sbin/plesk bin license -i ${key} | |
cat "/usr/local/psa/admin/cp/public/theme/css/main.css" | grep '.license-status{display:none;}' > /dev/null ) ; then | |
echo ".license-status{display:none;}" >> "/usr/local/psa/admin/cp/public/theme/css/main.css" | |
#exit 0 | |
#else | |
#echo "Error Key Id: ${key_id} OR Key Date: ${lim_date} exists!"; | |
#exit 113 | |
#fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment