You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
450 B

#!/bin/bash
# Author: Tealk
# Repo: https://codeberg.org/Tealk/shell-administration-script
# shellcheck disable=SC2034
title="Clean cache"
if [ "${PROGNAME}" = "BookStack" ]; then
if ! sudo -u "${WEBUSER}" "${PHP}" "${FULLPATH}"/artisan cache:clear >/dev/null 2>&1; then
reason="can't clear cache"
ERROR
fi
if ! sudo -u "${WEBUSER}" "${PHP}" "${FULLPATH}"/artisan view:clear >/dev/null 2>&1; then
reason="can't clear view"
ERROR
fi
fi