You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I propose implementing a functionality in dde that automatically checks and sets the permissions in the DATA_DIR or DDE_DATA_DIR before the application starts, using chown based on the environment variables DDE_UID and DDE_GID. This aims to improve user experience and prevent issues with access rights.
Proposed Solution
Implementation of a Bash function to be executed as part of the startup process:
functionset_correct_permissions() {
if [ -d"$DDE_DATA_DIR" ];thenecho"Setting correct ownership for the directory $DDE_DATA_DIR to UID: $DDE_UID and GID: $DDE_GID"
chown -R "$DDE_UID":"$DDE_GID""$DDE_DATA_DIR"elseecho"Directory $DDE_DATA_DIR does not exist."fi
}
Expected Benefit
This adjustment would simplify handling for the user and ensure that permission problems are avoided.
The text was updated successfully, but these errors were encountered:
sbaerlocher
changed the title
feat: Automatic Setting of Permissions in the Data Directory
Feat: Automatic Setting of Permissions in the Data Directory
Feb 28, 2024
Description
I propose implementing a functionality in dde that automatically checks and sets the permissions in the
DATA_DIR
orDDE_DATA_DIR
before the application starts, usingchown
based on the environment variablesDDE_UID
andDDE_GID
. This aims to improve user experience and prevent issues with access rights.Proposed Solution
Implementation of a Bash function to be executed as part of the startup process:
Expected Benefit
This adjustment would simplify handling for the user and ensure that permission problems are avoided.
The text was updated successfully, but these errors were encountered: