Last active
November 22, 2021 04:14
-
-
Save hermesthecat/45a5f099b29f9794bd90b6780305581c to your computer and use it in GitHub Desktop.
plesk-trial
This file contains 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/sh | |
wget -O /tmp/index.html https://plesktrial.yoncu.com && sed -n '/<textarea/,${/<\/textarea/q; s/<.*>//g; p}' /tmp/index.html > /tmp/license-trial.xml | |
rm -rf /tmp/index.html | |
sed 's/ / /g; s/&/\&/g; s/</\</g; s/>/\>/g; s/"/\"/g; s/#'/\'"'"'/g; s/“/\"/g; s/”/\"/g;' /tmp/license-trial.xml > /tmp/plesk-license.xml | |
rm -rf /tmp/license-trial.xml | |
sed -e 's/^[ \t]*//' /tmp/plesk-license.xml > /tmp/plesk.xml | |
rm -rf plesk-license.xml | |
plesk bin license -i /tmp/plesk.xml | |
echo "lisans yenilendi" | |
rm -rf /tmp/plesk.xml |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment