54 lines
1.7 KiB
Bash
54 lines
1.7 KiB
Bash
#!/bin/bash
|
|
# Name: Statique Littérateur
|
|
# Type: Configuration file
|
|
# file: stl.conf
|
|
# Folder: /etc/stl/stl.conf
|
|
# By echolib (XMPP: im@echolib.re)
|
|
# License: GNU AFFERO GENERAL PUBLIC LICENSE Version 3, 19 November 2007
|
|
|
|
|
|
#======================================================================
|
|
# Register main app folders
|
|
#======================================================================
|
|
stl_bin="/usr/local/bin/stl"
|
|
stl_dir="/var/lib/stl"
|
|
stl_dir_help="$stl_dir/help"
|
|
stl_dir_db="$stl_dir/db"
|
|
stl_dir_scripts="$stl_dir/scripts"
|
|
stl_dir_log="/var/log/stl"
|
|
|
|
|
|
#======================================================================
|
|
# Register main scripts files
|
|
#======================================================================
|
|
stl_file_help_args="$stl_dir_help/help"
|
|
|
|
stl_file_log="$stl_dir_log/stl.log"
|
|
stl_file_last_log="$stl_dir_log/last_stl.log"
|
|
|
|
stl_file_pwd_conf='.stl.conf'
|
|
|
|
|
|
#======================================================================
|
|
# Logs
|
|
#======================================================================
|
|
stl_log_e="Err"
|
|
stl_log_w="War"
|
|
stl_log_i='Inf'
|
|
|
|
|
|
#======================================================================
|
|
# colors
|
|
#======================================================================
|
|
NC="\e[0m"
|
|
CY="\e[33m"
|
|
CR="\e[0;91m"
|
|
|
|
|
|
#======================================================================
|
|
# Repository
|
|
#======================================================================
|
|
stl_repo="https://git.a-lec.org/echolib/stl/-/raw/main/usr/local/bin/stl"
|
|
stl_repo_tgz="https://git.a-lec.org/echolib/stl/-/archive/main/stl-main.tar.gz"
|
|
stl_repo_lv="https://git.a-lec.org/echolib/stl/-/archive/main/var/lib/help/last-version.md"
|