Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
immerda
Puppet Modules
webhosting
Commits
75ecceda
Commit
75ecceda
authored
Jul 03, 2019
by
mh
Browse files
move the user scripts logs to the logs folder
parent
b5dfc04e
Changes
2
Hide whitespace changes
Inline
Side-by-side
files/user_scripts/common/run_incron.sh
View file @
75ecceda
...
...
@@ -12,4 +12,4 @@ script_basename=`basename $2 .run`
script
=
"/opt/webhosting_user_scripts/
${
script_basename
}
/
${
script_basename
}
.rb"
[
-x
${
script
}
]
||
exit
1
$script
$1
/
$2
2>&1
>>
$
1
/
${
script_basename
}
.log
$script
$1
/
$2
2>&1
>>
$
(
dirname
$(
dirname
$1
))
/logs/users-script-
${
script_basename
}
.log
manifests/user_scripts.pp
View file @
75ecceda
...
...
@@ -43,13 +43,9 @@ class webhosting::user_scripts(
}
selinux::fcontext
{
'/var/www/vhosts/[^/]*/scripts/[^/]*/[^/]*\.log(\-.*)?'
:
before
=>
File
[
'/opt/webhosting_user_scripts/common/run_incron.sh'
],
setype
=>
'httpd_log_t'
;
}
->
logrotate::rule
{
logrotate::rule
{
'webhosting-scripts'
:
path
=>
'/var/www/vhosts/*/script
s/*/
*.log'
,
path
=>
'/var/www/vhosts/*/
logs/users-
script
-
*.log'
,
rotate
=>
7
,
compress
=>
true
,
copytruncate
=>
true
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment