diff options
| author | mobinmob <mobinmob@disroot.org> | 2024-08-15 21:28:35 +0300 |
|---|---|---|
| committer | mobinmob <mobinmob@disroot.org> | 2024-08-15 21:28:35 +0300 |
| commit | 1ce923a7a12fe4e7eda4ea6868aba3af4aa0c040 (patch) | |
| tree | d97d172b942f30cc30bf6b5c5f1ce128a4b3457d /apkg | |
| parent | c9f957a0807027ce17f0fcf394dbb7708e5adadc (diff) | |
| download | autils-1ce923a7a12fe4e7eda4ea6868aba3af4aa0c040.tar.gz autils-1ce923a7a12fe4e7eda4ea6868aba3af4aa0c040.zip | |
apkg: set default log dir as /var/log
Diffstat (limited to 'apkg')
| -rwxr-xr-x | apkg | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -865,7 +865,8 @@ APKG_REPO="$PWD" APKG_PACKAGE_DIR="$PWD" APKG_SOURCE_DIR="$PWD" APKG_WORK_DIR="$PWD" -log_file="$APKG_WORK_DIR"/"$(basename "$0")_$(date +"%Y%m%d_%T")".log +[!APKG_LOG_DIR] && APK_LOG_DIR="/var/log" +log_file="$APKG_LOG_DIR"/"$(basename "$0")_$(date +"%Y%m%d_%T")".log # source config if [ -f $APKG_CONF ]; then |