From c1bb8d0cfcf2de559dfc04c79c37d689990f4366 Mon Sep 17 00:00:00 2001 From: JRGTH Date: Sat, 18 Dec 2021 00:58:42 -0400 Subject: [PATCH] Create required dir for templates link creation --- CHANGELOG | 1 + unionfs.sh | 10 ++++++++-- version | 2 +- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index 66ec872..28ced42 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -3,6 +3,7 @@ ====================== Version Description +1.1.02......Create required dir for templates link creation. 1.1.01......Cosmetic changes, update maintenance page. 1.1.00......Initial support for Linux jails(experimental). 1.0.99......Include freebsd-update files for 12.3 release. diff --git a/unionfs.sh b/unionfs.sh index 085be08..c2cad66 100755 --- a/unionfs.sh +++ b/unionfs.sh @@ -60,8 +60,10 @@ platform_check() if [ "${PRDPLATFORM}" = "x64-embedded" ]; then pkg_symlink else - echo "Cleaning the pkg cache." - pkg clean -y -a + if [ -d "/var/cache/pkg" ]; then + echo "Cleaning the pkg cache." + pkg clean -y -a + fi fi } @@ -172,6 +174,10 @@ extract_pkg() { echo "Cleaning the pkg cache." pkg clean -y -a fi + + if [ ! -d "${CWDIR}/templates" ]; then + mkdir -p ${CWDIR}/templates + fi } unionfs_on() { diff --git a/version b/version index d96face..43807dd 100644 --- a/version +++ b/version @@ -1 +1 @@ -1.1.01 +1.1.02