fix: error in func create_filestructure

If printer_data doesnt exist Installer creates structure

This error make structure as root!

Signed-off-by: Stephan Wendel <me@stephanwe.de>
This commit is contained in:
Stephan Wendel
2022-11-05 18:23:58 +01:00
parent e2b4cd8cd2
commit 0eb04cf2a6

View File

@@ -121,7 +121,7 @@ import_config() {
create_filestructure() {
for i in "${CROWSNEST_CONFIG_PATH}" "${CROWSNEST_LOG_PATH%/*.*}" "${CROWSNEST_ENV_PATH}"; do
if [[ ! -d "${i}" ]]; then
mkdir -p "${i}"
sudo -u "${BASE_USER}" mkdir -p "${i}"
fi
done
}