Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
blocks:manage_script_directory [2024-03-20 14:22]
mattias [Update]
blocks:manage_script_directory [2024-04-24 06:58] (current)
mattias
Line 1: Line 1:
 =====Manage the script directory===== =====Manage the script directory=====
  
-We keep the latest version on our script environment in our [[https://github.com/pixilab/blocks-script|blocks-script repo on github]].+We always keep the latest version on our script environment in our [[https://github.com/pixilab/blocks-script|blocks-script repo on github]]. 
 + 
 +:!: Before doing anything with an existing script directory in a working system, it is always recommended to make a security copy of the /PIXILAB-Blocks-root/script/ directory in case something goes wrong. 
  
-:!: Before doing anything with an existing script directory in a working system, it is always recommended to: 
-  * stop the server 
-  * make a security copy of the /PIXILAB-Blocks-root/script/ directory in case something goes wrong. 
  
 ====First time installation==== ====First time installation====
Line 12: Line 12:
  
 ===Get the files=== ===Get the files===
-There are a few different methods to obtain the files, but in general for any desktop environments one can download a zip of the repo by clicking the green <CODE> dropdown and select the option to [[https://github.com/pixilab/blocks-script/archive/refs/heads/master.zip|Download ZIP]]. This zip will contain all the files. +There are a few different methods to obtain the files, but in general for any desktop environments one can download a compressed .zip archive of the repo ([[https://github.com/pixilab/blocks-script|]]) by clicking the green <CODE> dropdown and select the option to [[https://github.com/pixilab/blocks-script/archive/refs/heads/master.zip|Download ZIP]]. This zip will contain all the latest files. 
  
 ===Decompress the files=== ===Decompress the files===
Line 23: Line 23:
  
  
-====Update====+====Update the script directory====
 An update of the files is the same thing as with the fresh install for any desktop environment. For linux there is a script that automates this:  An update of the files is the same thing as with the fresh install for any desktop environment. For linux there is a script that automates this: 
-===Production Linux environments=== +===Production Linux Deskotop environments=== 
-For production Linux environments, one can use the update_scripts.sh that automates the procedure. Before running the script, cd into the /script/ directory in the cli.+For production Linux environments provision with our image, one can use the update_scripts.sh that automates the whole procedure including making a security copy and stopping the server. Before running the script, cd into the /script/ directory in the cli. The script has some dependencies that may be missing in i.e virtual machines not provisioned by the image
 <code> <code>
 pixi-server@pixi:~$ cd PIXILAB-Blocks-root/script/ pixi-server@pixi:~$ cd PIXILAB-Blocks-root/script/
Line 34: Line 34:
 pixi-server@pixi:~/PIXILAB-Blocks-root/script$ ./update_scripts.sh pixi-server@pixi:~/PIXILAB-Blocks-root/script$ ./update_scripts.sh
 </code> </code>
-In case the environment has not been set up from the Pixilab image, one may have to make the file excutable before running the script. +
-<code> +
-pixi-server@pixi:~/PIXILAB-Blocks-root/script$ chmod +x update_scripts.sh +
-</code>+
 ===Linux Desktop=== ===Linux Desktop===
 ===Linux CLI=== ===Linux CLI===