Apply access rights to created files based on the original TeX file
This commit is contained in:
parent
3e573a9cee
commit
f4b54637aa
5
run.sh
5
run.sh
@ -43,6 +43,11 @@ if test "$(ls -A /tex)"; then
|
|||||||
|
|
||||||
# Set 'current' symlink
|
# Set 'current' symlink
|
||||||
ln -sf $BUILD ./current-build
|
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
|
else
|
||||||
# Directory is empty
|
# Directory is empty
|
||||||
echo "$ECHOPREFIX Please mount your directory to /tex"
|
echo "$ECHOPREFIX Please mount your directory to /tex"
|
||||||
|
Loading…
Reference in New Issue
Block a user