mirror of
https://github.com/lemeow125/ansible-playbooks.git
synced 2024-11-16 19:59:26 +08:00
Update scripts
This commit is contained in:
parent
79010ee462
commit
2ce5382f1f
3 changed files with 4 additions and 4 deletions
|
@ -49,7 +49,7 @@ function backup() {
|
|||
docker_projects="/mnt/nvme/files/docker projects/"
|
||||
|
||||
# Sample Entry
|
||||
backup "sample" "$docker_projects/sample_project" '--exclude "*.tmp"
|
||||
# backup "sample" "$docker_projects/sample_project" '--exclude "*.tmp"
|
||||
|
||||
## Non-Docker Directories
|
||||
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
#!/bin/bash
|
||||
|
||||
scripts_directory="/root/scripts/acme_scripts"
|
||||
directory="/root/scripts/acme_scripts"
|
||||
|
||||
# Execute all .sh files in the directory
|
||||
for script in "$scripts_directory"/*.sh; do
|
||||
for script in "$directory"/*.sh; do
|
||||
echo "--Executing $script--"
|
||||
bash "$script"
|
||||
done
|
|
@ -6,7 +6,7 @@
|
|||
docker_projects="/mnt/nvme/files/docker projects"
|
||||
|
||||
# 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
|
||||
|
||||
|
|
Loading…
Reference in a new issue