File: /volume1/@appstore/WebStation/cron/cron_job_cmd.sh
#!/bin/bash
# get all python modules from pypi.
/var/packages/WebStation/target/tools/python_packages.sh
# get extesions of all php version.
WEBSTATION_MISC="/var/packages/WebStation/target/misc/"
/bin/wget https://raw.githubusercontent.com/mlocati/docker-php-extension-installer/master/data/supported-extensions -O "${WEBSTATION_MISC}php_extension_remote.csv.tmp"
if [ $? -eq 0 ] && [ -s "${WEBSTATION_MISC}php_extension_remote.csv.tmp" ] ; then
mv -f "${WEBSTATION_MISC}php_extension_remote.csv.tmp" "${WEBSTATION_MISC}php_extension_remote.csv"
chmod 644 "${WEBSTATION_MISC}php_extension_remote.csv"
fi
# get supported script language & 3rdparty package tags from docker hub.
synopkg status ContainerManager
status=$?
if [ $status -eq 0 ]; then
/var/packages/WebStation/target/tools/synowebservice docker get-tags
fi
exit 0