We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f97a9d8 commit 0f6e9d4Copy full SHA for 0f6e9d4
lib/logrotate.sh
@@ -28,9 +28,11 @@ sk-logrotate(){
28
29
if [[ -d /usr/local/etc/logrotate.d ]];then
30
logrotate_config_file=/usr/local/etc/logrotate.d/${config_name}
31
+ export LOGROTATE_CONFIG_FILE=$logrotate_config_file
32
logrotate_sudo=0
33
else
34
logrotate_config_file=/etc/logrotate.d/${config_name}
35
36
logrotate_sudo=1
37
fi
38
lib/template.sh
@@ -0,0 +1,5 @@
1
+sk-template-bash() {
2
+ sk_help_noarg "$FUNCNAME: filename. Render a template file containing bash variables. NOTE: escape any quotes." "$@" && return
3
+ eval "echo \"$(cat $1)\""
4
+}
5
+
0 commit comments