Update scripts

This commit is contained in:
Keannu Bernasol 2024-11-08 16:44:28 +08:00
parent 79010ee462
commit 2ce5382f1f
3 changed files with 4 additions and 4 deletions

View file

@ -49,7 +49,7 @@ function backup() {
docker_projects="/mnt/nvme/files/docker projects/" docker_projects="/mnt/nvme/files/docker projects/"
# Sample Entry # Sample Entry
backup "sample" "$docker_projects/sample_project" '--exclude "*.tmp" # backup "sample" "$docker_projects/sample_project" '--exclude "*.tmp"
## Non-Docker Directories ## Non-Docker Directories

View file

@ -1,9 +1,9 @@
#!/bin/bash #!/bin/bash
scripts_directory="/root/scripts/acme_scripts" directory="/root/scripts/acme_scripts"
# Execute all .sh files in the directory # Execute all .sh files in the directory
for script in "$scripts_directory"/*.sh; do for script in "$directory"/*.sh; do
echo "--Executing $script--" echo "--Executing $script--"
bash "$script" bash "$script"
done done

View file

@ -6,7 +6,7 @@
docker_projects="/mnt/nvme/files/docker projects" docker_projects="/mnt/nvme/files/docker projects"
# Sample Entry # Sample Entry
cd "$docker_projects/sample_project" && docker-compose down && docker-compose up -d # cd "$docker_projects/sample_project" && docker-compose down && docker-compose up -d
## Non-Docker Projects ## Non-Docker Projects