If you have a Apple Silicon Macs, anywhere that says /usr/local
should be replaced with /opt/homebrew
.
This is not meant for a production environment, a system holding sensitive information, or anything else of the sort. This is meant for development environments only, and makes some security tradeoffs for simple development.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import subprocess, os | |
#subprocess.run(["ls", "-l"]) | |
dirpath = '/var/www/html/moodle' | |
#dirpath = '/home/camilo/Projects/DINTEV/TEST' | |
#blocks | |
blocks = ['/blocks/', | |
'git clone --branch master https://github.com/desarrolloant/course_list.git course_list', | |
'git clone --branch master https://github.com/jonof/moodle-block_completion_progress.git completion_progress', |