Skip to content
Snippets Groups Projects
Commit 29e02c49 authored by Vipul's avatar Vipul
Browse files

chore: fix changing permissions operation permitted, by adding sudo

parent 01e2deae
No related branches found
No related tags found
No related merge requests found
......@@ -172,11 +172,11 @@ setup_git() {
sudo git pull origin main --force
echo "Repository updated. Applying updates..."
# Ensure the scripts are executable after a potential update
chmod +x "$SCRIPT_PATH"
chmod +x "$VIMACOG_GEN_PATH"
chmod +x "$VIMACOG_HARD_GEN_PATH"
chmod 777 "$GRAFANADATA_PATH"
chmod 777 "$LOKIDATA_PATH"
sudo chmod +x "$SCRIPT_PATH"
sudo chmod +x "$VIMACOG_GEN_PATH"
sudo chmod +x "$VIMACOG_HARD_GEN_PATH"
sudo chmod 777 "$GRAFANADATA_PATH"
sudo chmod 777 "$LOKIDATA_PATH"
# Hard refresh the setup
echo "Force updating script due to changes..."
exec "$SCRIPT_PATH" true
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment