From 300e877b3a43f810277740835a8fb474090fc5ea Mon Sep 17 00:00:00 2001 From: Micke Nordin Date: Wed, 22 Nov 2023 11:01:52 +0100 Subject: [PATCH 1/2] Make curl silent --- templates/script/announce.erb.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/script/announce.erb.sh b/templates/script/announce.erb.sh index d9ae874..3bdbf90 100755 --- a/templates/script/announce.erb.sh +++ b/templates/script/announce.erb.sh @@ -69,7 +69,7 @@ curl_cmd(){ fi local admin_app_password="<%= @admin_app_password %>" domain="$(hostname -d)" - curl -X "${method}" -u "admin:${admin_app_password}" "${payload[@]}" -H 'OCS-APIRequest: true' "https://${domain}/ocs/v2.php/apps/announcementcenter/api/v1/announcements${id}" + curl -s -X "${method}" -u "admin:${admin_app_password}" "${payload[@]}" -H 'OCS-APIRequest: true' "https://${domain}/ocs/v2.php/apps/announcementcenter/api/v1/announcements${id}" } curl_cmd "${method}" "${argument}" From b40beeb42005c0f8a02bea576b31794c96b0a777 Mon Sep 17 00:00:00 2001 From: Micke Nordin Date: Wed, 22 Nov 2023 11:04:20 +0100 Subject: [PATCH 2/2] Install xmlstarlet --- manifests/script.pp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/manifests/script.pp b/manifests/script.pp index 538ced0..4bc0da4 100644 --- a/manifests/script.pp +++ b/manifests/script.pp @@ -80,6 +80,10 @@ class sunetdrive::script ( ensure => installed, provider => apt, } + package { 'xmlstarlet': + ensure => installed, + provider => apt, + } $drive_version = '0.3.1' if $facts['os']['distro']['id'] == 'Debian' { $pip_cmd = 'pip3 install --break-system-packages'