Da dont have system for update and auto-update skins without custom code.
For manual update DA we have API function "/CMD_LICENSE?update=program". Be fine have analogy function for update skin as "/CMD_SKINS?update=capri" or "/CMD_SKINS?update=all" for all available skin.
For this need know only url for version.txt, url for zip with new skin and maybe custom permition for some file.
We can make conf file into skin directory with next information.
skin.conf:
https://raw.githubusercontent.com/Some/Skin/master/version.txt (write last skin version - for this DA compability):
Now for manual update from panel need give not secure permition on skin folder and its not good.
For auto-update be fine have alone algorithm than check 1 time in day all skin with skin.conf. Check version from version_url and local version.txt in skin folder.
if have update, than download zip and unpack to skin folder.
Thank you!
For manual update DA we have API function "/CMD_LICENSE?update=program". Be fine have analogy function for update skin as "/CMD_SKINS?update=capri" or "/CMD_SKINS?update=all" for all available skin.
For this need know only url for version.txt, url for zip with new skin and maybe custom permition for some file.
We can make conf file into skin directory with next information.
skin.conf:
Code:
zip_url="https://github.com/Some/mySkin/archive/master.zip"
version_url="https://raw.githubusercontent.com/Some/mySkin/master/version.txt"
run_after_update="/usr/local/directadmin/data/skins/mySkin/fix_permitions.sh"
https://raw.githubusercontent.com/Some/Skin/master/version.txt (write last skin version - for this DA compability):
Code:
1.01-1.49.1
Now for manual update from panel need give not secure permition on skin folder and its not good.
For auto-update be fine have alone algorithm than check 1 time in day all skin with skin.conf. Check version from version_url and local version.txt in skin folder.
if have update, than download zip and unpack to skin folder.
Thank you!
Last edited: