From: Tom Hughes Date: Wed, 30 Nov 2022 10:26:45 +0000 (+0000) Subject: Drop no longer required sudo on taginfo passenger restart X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/56a2fb1e22a093a6fc8fda7e6bd6e3c30de6e2b7 Drop no longer required sudo on taginfo passenger restart --- diff --git a/cookbooks/taginfo/templates/default/update.erb b/cookbooks/taginfo/templates/default/update.erb index 99b322f57..caad71353 100644 --- a/cookbooks/taginfo/templates/default/update.erb +++ b/cookbooks/taginfo/templates/default/update.erb @@ -19,7 +19,7 @@ mv $ROOT/data/taginfo-* $ROOT/data/old mv $ROOT/sources/taginfo-*.db $ROOT/sources/*/taginfo-*.db $ROOT/data mv $ROOT/sources/download/* $ROOT/download -sudo PASSENGER_INSTANCE_REGISTRY_DIR=<%= node[:passenger][:instance_registry_dir] %> /usr/bin/passenger-config restart-app $ROOT/taginfo/web > /dev/null +PASSENGER_INSTANCE_REGISTRY_DIR=<%= node[:passenger][:instance_registry_dir] %> /usr/bin/passenger-config restart-app $ROOT/taginfo/web > /dev/null find $ROOT/sources/log -mtime +28 -delete