From baaf028c0cfb6ff6537411337e6bb4ff58bb0e24 Mon Sep 17 00:00:00 2001 From: Frank Wall Date: Sat, 5 Nov 2022 18:38:28 +0100 Subject: [PATCH] fix error running post update commands Fixes this error: Error: /Stage[main]/Nextcloud::Update/Exec[post-update command]: Could not evaluate: Working directory /opt/nextcloud-24.0.7/nextcloud does not exist! This error would only occur when $update_host is set and the update was not completed yet. --- manifests/update.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifests/update.pp b/manifests/update.pp index 464dfae..6fce4c4 100644 --- a/manifests/update.pp +++ b/manifests/update.pp @@ -54,7 +54,7 @@ exec { 'post-update command': command => $nextcloud::post_update_cmd, path => $nextcloud::path, - cwd => $nextcloud::distribution_dir, + cwd => $nextcloud::symlink, onlyif => $post_update_onlyif, logoutput => $nextcloud::debug, }