Skip to content

Commit

Permalink
write permission check
Browse files Browse the repository at this point in the history
  • Loading branch information
mdhiggins committed Jan 3, 2025
1 parent f549757 commit d768a70
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion root/etc/s6-overlay/s6-rc.d/init-sma-config/run
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,10 @@ chown -R abc:abc ${SMA_PATH}
chmod -R 775 ${SMA_PATH}/*.sh

# update autoprocess
${SMA_PATH}/venv/bin/python3 ${SMA_PATH}/update.py
if [ -w "$SMA_PATH/config/autoProcess.ini" ]; then
${SMA_PATH}/venv/bin/python3 ${SMA_PATH}/update.py
else
echo "${echoprefix} autoProcess.ini does not have write permission, it will need to be configured manually"
fi

exit $?

0 comments on commit d768a70

Please sign in to comment.