Added settings for bash scripts

This commit is contained in:
2025-10-29 21:12:50 +00:00
parent 53f72f2c37
commit 756103e25f

View File

@@ -25,7 +25,15 @@ $CONFIG = [
'blacklist_commands' => ['rm', 'shutdown', 'reboot', 'passwd', 'dd', ':(){'],
'default_dir' => '/home',
// === ShutterLinkSort bash file config ===
'camera_mac' => '00:00:00:00:00:00',
'camera_uuid' => 'e4:ec:89:a3:0c:b5:4d:1d:cb:e3:a8:e1:ff:68:48:ed',
'camera_xml_url' => 'http://ip:1900/DeviceDescription.xml',
'camera_ext_formats' => 'ARW JPG',
'gphoto2_config_file' => '/root/.gphoto/settings',
'gphoto2_config_port' => 'gphoto2=port=ptpip:',
'gphoto2_config_model' => 'gphoto2=model=PTP/IP Camera',
'gphoto2_config_guid' => 'ptp2_ip=guid=',
];
@@ -52,6 +60,7 @@ $CONFIG_JS = [
$CONFIG += [
// === Paths ===
'base_dir' => $ROOT_DIR, // Location of root directory for the web server usually (Define at the top $ROOT_DIR)
'sorted_img_dir' => $ROOT_DIR.'/img/sorted',
'gallery_dir' => $ROOT_DIR.'/img/sorted/jpg', // Location of the images
'upload_dir' => $ROOT_DIR.'/img/uploads', // Location for uploaded images
'index_file' => $ROOT_DIR.'/img/.index', // Location of the index file for image naming