0.2.0: job engine, VM actions, theme-aware styling
This commit is contained in:
1 parent
c62de24cc0
commit
485a267ffe
14 files changed
+901
-71
No files matched your search
@@ -68,7 +68,7 @@ preflight() {
|
||||
*livecd*|*liveusb*) fail "live media is not supported for extensions (platform: ${platform})" ;;
|
||||
esac
|
||||
[ -d "${CWDIR}" ] || fail "install directory ${CWDIR} is missing"
|
||||
mkdir -p "${CWDIR}/state" "${CWDIR}/log" "${CWDIR}/backup" "${CWDIR}/templates"
|
||||
mkdir -p "${CWDIR}/state/jobs" "${CWDIR}/state/locks" "${CWDIR}/log" "${CWDIR}/backup" "${CWDIR}/templates"
|
||||
|
||||
free_kb=$(df -k "${CWDIR}" | awk 'NR==2 {print $4}')
|
||||
if [ -n "${free_kb}" ] && [ "${free_kb}" -lt 1048576 ]; then
|
||||
@@ -133,7 +133,7 @@ do_symlinks() {
|
||||
mkdir -p "${WWWEXT}"
|
||||
link_force "${CONFDIR}" "${WWWEXT}/${APPNAME}"
|
||||
|
||||
for f in "${CWDIR}"/gui/*.php "${CWDIR}"/gui/*.inc; do
|
||||
for f in "${CWDIR}"/gui/*.php "${CWDIR}"/gui/*.inc "${CWDIR}"/gui/*.js "${CWDIR}"/gui/*.css; do
|
||||
[ -e "${f}" ] || continue
|
||||
link_force "${f}" "${WWW}/$(basename "${f}")"
|
||||
done
|
||||
@@ -187,7 +187,7 @@ set_permissions() {
|
||||
find "${CWDIR}/bin" -type f -exec chmod 0555 {} \; 2>/dev/null
|
||||
find "${CWDIR}/gui" -type f \( -name '*.php' -o -name '*.inc' \) -exec chmod 0644 {} \; 2>/dev/null
|
||||
find "${CWDIR}/gui" -type f \( -name '*.js' -o -name '*.css' \) -exec chmod 0644 {} \; 2>/dev/null
|
||||
chmod 0750 "${CWDIR}/state" "${CWDIR}/log" "${CWDIR}/backup" 2>/dev/null
|
||||
chmod 0750 "${CWDIR}/state" "${CWDIR}/state/jobs" "${CWDIR}/state/locks" "${CWDIR}/log" "${CWDIR}/backup" 2>/dev/null
|
||||
}
|
||||
|
||||
selfcheck() {
|
||||
@@ -264,7 +264,7 @@ cmd_remove() {
|
||||
fi
|
||||
banner "uninstall"
|
||||
rm -f "${WWWEXT}/${APPNAME}"
|
||||
for f in "${CWDIR}"/gui/*.php "${CWDIR}"/gui/*.inc; do
|
||||
for f in "${CWDIR}"/gui/*.php "${CWDIR}"/gui/*.inc "${CWDIR}"/gui/*.js "${CWDIR}"/gui/*.css; do
|
||||
[ -e "${f}" ] || continue
|
||||
lnk="${WWW}/$(basename "${f}")"
|
||||
if [ -L "${lnk}" ] && [ "$(readlink "${lnk}")" = "${f}" ]; then
|
||||
|
||||
Reference in new issue
Block a user