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:
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user