Skip to content

Commit 0f6e9d4

Browse files
author
Giles Westwood
committed
more missing functions
1 parent f97a9d8 commit 0f6e9d4

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

lib/logrotate.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,11 @@ sk-logrotate(){
2828

2929
if [[ -d /usr/local/etc/logrotate.d ]];then
3030
logrotate_config_file=/usr/local/etc/logrotate.d/${config_name}
31+
export LOGROTATE_CONFIG_FILE=$logrotate_config_file
3132
logrotate_sudo=0
3233
else
3334
logrotate_config_file=/etc/logrotate.d/${config_name}
35+
export LOGROTATE_CONFIG_FILE=$logrotate_config_file
3436
logrotate_sudo=1
3537
fi
3638

lib/template.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)