Skip to content

Commit

Permalink
fix error running post update commands
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
fraenki committed Nov 5, 2022
1 parent 8224550 commit baaf028
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion manifests/update.pp
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
Expand Down

0 comments on commit baaf028

Please sign in to comment.