🔃 Sync Hub v0.6.51 - Devices table + Permissions fixes

This commit is contained in:
jokob-sk
2024-06-07 20:48:44 +10:00
parent ebe41ab384
commit d63e0d9fd2
3 changed files with 4 additions and 3 deletions

View File

@@ -93,10 +93,12 @@ fi
# Create an empty log files
# Create the execution_queue.log and app_front.log files if they don't exist
touch "${INSTALL_DIR}"/front/log/{app.log,execution_queue.log,app_front.log,app.php_errors.log,stderr.log,stdout.log,db_is_locked.log}
touch "${INSTALL_DIR}"/front/api/{user_notifications.json}
touch "${INSTALL_DIR}"/front/api/user_notifications.json
echo "[INSTALL] Fixing permissions after copied starter config & DB"
chown -R nginx:www-data "${INSTALL_DIR}"/{config,front/log,db,front/api}
chown -R nginx:www-data "${INSTALL_DIR}"/front/api/user_notifications.json
chmod 750 "${INSTALL_DIR}"/{config,front/log,db}
find "${INSTALL_DIR}"/{config,front/log,db} -type f -exec chmod 640 {} \;

View File

@@ -15,8 +15,6 @@ from helper import timeNowTZ, updateState, get_file_content, write_file, get_se
from api import update_api
from plugin_utils import logEventStatusCounts, get_plugin_string, get_plugin_setting_obj, print_plugin_info, list_to_csv, combine_plugin_objects, resolve_wildcards_arr, handle_empty, custom_plugin_decoder, decode_and_rename_files
from notification import Notification_obj
from cryptography import decrypt_data
#-------------------------------------------------------------------------------
class plugin_param:

View File

@@ -5,6 +5,7 @@ import conf
from logger import mylog
from const import pluginsPath, logPath, apiPath
from helper import timeNowTZ, updateState, get_file_content, write_file, get_setting, get_setting_value
from cryptography import decrypt_data
module_name = 'Plugin utils'