Added include script with constants

This commit is contained in:
xdrm-brackets 2017-01-27 08:28:30 +01:00
parent 10cfd28122
commit f346057793
1 changed files with 25 additions and 0 deletions

25
lib/include/include Normal file
View File

@ -0,0 +1,25 @@
#!/usr/bin/php
<?php
# MAIN DIRECTORIES
define('ROOT_DIR', '/home/sats/satsd');
define('LOG_DIR', ROOT_DIR.'/log');
define('CONF_DIR', ROOT_DIR.'/conf');
define('SOURCE_DIR', ROOT_DIR.'/source');
# CONFIGURATION FILES
define('SECRET_CONF', CONF_DIR.'/machine.secret');
define('STATE_CONF', CONF_DIR.'/machine.state');
define('BRANCH_CONF', CONF_DIR.'/machine.branch');
define('ID_CONF', CONF_DIR.'/machine.id');
define('URL_CONF', CONF_DIR.'/api.url');
define('AUTH_CONF', CONF_DIR.'/auth.list');
# LOG FILES
define('ACCESS_LOG', CONF_DIR.'/access.log');
define('BOOT_LOG', CONF_DIR.'/boot.log');
define('DAEMON_LOG', CONF_DIR.'/daemon.log');
define('INSTALL_LOG', CONF_DIR.'/install-source.log');
define('UPDATE_LOG', CONF_DIR.'/update.log');
?>