fix: mkdir

This commit is contained in:
Félix Piédallu 2024-03-20 22:10:03 +01:00
parent 55f1f72e54
commit f4a5d9d5dc

View file

@ -59,9 +59,10 @@ function setup_files() {
chown "$app:$app" "/var/log/$app.log" chown "$app:$app" "/var/log/$app.log"
if [ ! -f "$conf_file" ]; then if [ ! -f "$conf_file" ]; then
mkdir -p "$(dirname "$conf_file")"
ynh_configure server.conf "$conf_file" ynh_configure server.conf "$conf_file"
chmod 400 "$conf_file" chmod 400 "$conf_file"
chown "$app:$app" "$conf_file" chown -R "$app:$app" "$(dirname "$conf_file")"
# Autoinstall the LDAP auth module # Autoinstall the LDAP auth module
if [ -f "$install_dir/$appname/$FORKNAME-bin" ]; then if [ -f "$install_dir/$appname/$FORKNAME-bin" ]; then