From a647c2215899fca7bd9e782f1f7b8f97469ca328 Mon Sep 17 00:00:00 2001 From: smarcet Date: Fri, 3 Apr 2020 14:53:17 -0300 Subject: [PATCH] Fixed permissions issues on SpammerProcess fixed permission due generating the pickle file was not allowed. Change-Id: I18f5a832753c393ba01cec6e3318191a1e639c1f Signed-off-by: smarcet --- files/functions | 2 ++ manifests/init.pp | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/files/functions b/files/functions index 0882fd6..97838c7 100644 --- a/files/functions +++ b/files/functions @@ -61,6 +61,8 @@ function set_laravel_storage_permissions { } function set_python_venv { + chmod 0775 $target_dir/app/Console/Commands/SpammerProcess + chown :www-data $target_dir/app/Console/Commands/SpammerProcess cd $target_dir/app/Console/Commands/SpammerProcess python3 -m venv env source env/bin/activate diff --git a/manifests/init.pp b/manifests/init.pp index 64e055e..7a42de2 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -587,7 +587,7 @@ class openstackid ( cron { 'InstallLaravelSchedule': ensure => 'present', - command => "php ${projectroot}/artisan schedule:run >> /dev/null 2>&1", + command => "/usr/bin/php ${projectroot}/artisan schedule:run >> /dev/null 2>&1", user => 'www-data', minute => '*', }