Commit 50f7f581 authored by Thomas Leibovici's avatar Thomas Leibovici
Browse files

ci: chmod o+rx on all src to allow use by postgres user



To allow postgres user to execute scripts from the source directory
ci/run-ci.sh did 'chmod o+rx' on some required files and directories.
However, many other files are missing (python files in src/cli,
as well as dynamic libraries generated in src/store/libs...).

To fix this, run a wider 'chmod o+rx' on all 'src'.

Change-Id: I0a888dbfafe2d58b7ed5adbe85357de7d8247e1e
Signed-off-by: default avatarThomas Leibovici <thomas.leibovici@cea.fr>
Reviewed-on: https://cws-fleury.labs.ocre.cea.fr/gerrit/6661


Reviewed-by: Linter
Reviewed-by: default avatarSebastien Gougeaud <sebastien.gougeaud@cea.fr>
Reviewed-by: default avatarPatrice LUCAS <patrice.lucas@cea.fr>
Tested-by: default avatarJenkins s8open_nr <s8open_nr@ccc.ocre.cea.fr>
parent 74cb2535
......@@ -25,11 +25,11 @@ fi
make
# FIXME: when cloning the repo, some scripts do not have o+rx
# permissions, it is however necessary to execute them as postgres
chmod o+rx . .. ./scripts/phobos_db{,_local}
# Need to give rx permissions to the following files to let libtool use them
# when running valgrind tests
chmod o+rx ./scripts/pho_ldm_helper ./src/cli/scripts/phobos
# permissions, it is however necessary to execute them as postgres,
# as well as when running valgrind tests
chmod o+rx . ..
chmod -R o+rx src scripts
sudo -u postgres ./scripts/phobos_db_local drop_db || true
sudo -u postgres ./scripts/phobos_db_local setup_db -s -p phobos
export VERBOSE=1
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment