Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
simple-vm-manager
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Recolic
simple-vm-manager
Commits
ee45dce8
There was an error fetching the commit references. Please try again later.
Commit
ee45dce8
authored
1 year ago
by
Recolic
Browse files
Options
Downloads
Patches
Plain Diff
.note
parent
d441c0b4
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
README.md
+1
-1
1 addition, 1 deletion
README.md
cron-callback.sh
+7
-1
7 additions, 1 deletion
cron-callback.sh
with
8 additions
and
2 deletions
README.md
+
1
−
1
View file @
ee45dce8
...
...
@@ -16,7 +16,7 @@ Turn your server/desktop to DigitalOcean / Linode / Vultr with a super-simple sc
qemu, bash, sed
Optional: aria2c (simply replace aria2c with curl if you don't like it)
Any of them: aria2c / wget / curl
> ArchLinux user: simply run `pacman -S cdrkit qemu-base aria2`
...
...
This diff is collapsed.
Click to expand it.
cron-callback.sh
+
7
−
1
View file @
ee45dce8
...
...
@@ -47,7 +47,13 @@ function download_cloud_img_if_not_exist () {
[
!
"
${
knowledge
[
$cloudimg
]+abc
}
"
]
&&
echo2
"Unknown cloudimg
$cloudimg
. cannot download it."
&&
return
1
echo2
"+ Downloading cloudimg
$cloudimg
..."
aria2c
-o
"base/
$cloudimg
"
"
${
knowledge
[
$cloudimg
]
}
"
||
!
echo2
"Failed to download ubuntu cloudimg"
||
return
$?
if
which aria2c
;
then
aria2c
-o
"base/
$cloudimg
"
"
${
knowledge
[
$cloudimg
]
}
"
||
!
echo2
"Failed to download ubuntu cloudimg"
||
return
$?
elif
which wget
;
then
wget
-O
"base/
$cloudimg
"
"
${
knowledge
[
$cloudimg
]
}
"
||
!
echo2
"Failed to download ubuntu cloudimg"
||
return
$?
elif
which curl
;
then
curl
-o
"base/
$cloudimg
"
"
${
knowledge
[
$cloudimg
]
}
"
||
!
echo2
"Failed to download ubuntu cloudimg"
||
return
$?
fi
}
function
create_vm_if_not_exist
()
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment