diff --git a/run.sh b/run.sh index b060ac1..b15531a 100755 --- a/run.sh +++ b/run.sh @@ -43,6 +43,11 @@ if test "$(ls -A /tex)"; then # Set 'current' symlink ln -sf $BUILD ./current-build + + # Apply the access rights to build folder as found on the target file + chmod --reference=$TARGET -R $BUILD ./current-build ./last-successful ./last-failed + chmod +x $BUILD + chown --reference=$TARGET -R $BUILD ./current-build ./last-successful ./last-failed else # Directory is empty echo "$ECHOPREFIX Please mount your directory to /tex"