mirror of
https://github.com/leitbogioro/Tools.git
synced 2024-11-15 13:44:50 +08:00
Update RHELinit.sh
This commit is contained in:
parent
9540ebeaf3
commit
42702f520d
1 changed files with 3 additions and 3 deletions
|
@ -48,17 +48,17 @@ DDURL=$(grep "DDURL" $confFile | awk '{print $2}')
|
|||
DEC_CMD=$(grep "DEC_CMD" $confFile | awk '{print $2}')
|
||||
cloudInitUrl=$(grep "cloudInitUrl" $confFile | awk '{print $2}')
|
||||
|
||||
# Reset configurations of repositories
|
||||
# Reset configurations of repositories.
|
||||
true >/etc/apk/repositories
|
||||
setup-apkrepos $LinuxMirror/$alpineVer/main
|
||||
setup-apkcache /var/cache/apk
|
||||
|
||||
# Add community mirror
|
||||
# Add community mirror.
|
||||
sed -i '$a\'$LinuxMirror'/'$alpineVer'/community' /etc/apk/repositories
|
||||
# Add edge testing to the repositories
|
||||
# sed -i '$a\'$LinuxMirror'/edge/testing' /etc/apk/repositories
|
||||
|
||||
# Synchronize time from hardware
|
||||
# Synchronize time from hardware.
|
||||
hwclock -s
|
||||
|
||||
# Install necessary components.
|
||||
|
|
Loading…
Reference in a new issue