Skip to content

Commit aa4d622

Browse files
permission fix
1 parent 66ec354 commit aa4d622

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

scripts/env-setup.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ if [ -f "$SC_SERVICE_FILE" ] ; then
9999
cp "$SC_SERVICE_FILE" /etc/systemd/system || { echo "Error: service copy failed"; exit 1; }
100100
fi
101101
cp scanoss-folder-hashing-api.sh /usr/local/bin || { echo "Error: startup script copy failed"; exit 1; }
102+
chmod +x /usr/local/bin/scanoss-folder-hashing-api.sh || { echo "Error: chmod failed for /usr/local/bin/scanoss-folder-hashing-api.sh"; exit 1; }
102103

103104
####################################################
104105
# SEARCH CONFIG FILE #
@@ -155,9 +156,6 @@ fi
155156
chown -R $RUNTIME_USER:$RUNTIME_USER "$BASE_C_PATH" || { echo "Error chown $BASE_C_PATH"; exit 1; }
156157
find "$CONFIG_DIR" -type d -exec chmod 0750 "{}" \;
157158
find "$CONFIG_DIR" -type f -exec chmod 0600 "{}" \;
158-
chown -R $RUNTIME_USER:$RUNTIME_USER "$DB_PATH_BASE"
159-
find "$DB_PATH_BASE" -type d -exec chmod 0750 "{}" \;
160-
find "$DB_PATH_BASE" -type f -exec chmod 0640 "{}" \;
161159

162160
# Copy the binaries if requested
163161
BINARY=scanoss-folder-hashing-api

0 commit comments

Comments
 (0)