Skip to content

Instantly share code, notes, and snippets.

@hermesthecat
Last active November 22, 2021 04:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hermesthecat/45a5f099b29f9794bd90b6780305581c to your computer and use it in GitHub Desktop.
Save hermesthecat/45a5f099b29f9794bd90b6780305581c to your computer and use it in GitHub Desktop.
plesk-trial
#!/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/&nbsp;/ /g; s/&amp;/\&/g; s/&lt;/\</g; s/&gt;/\>/g; s/&quot;/\"/g; s/#&#39;/\'"'"'/g; s/&ldquo;/\"/g; s/&rdquo;/\"/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