mirror of
https://github.com/outbackdingo/ack-image-builder.git
synced 2026-01-27 10:18:13 +00:00
13 lines
473 B
Bash
13 lines
473 B
Bash
#! /bin/bash
|
|
|
|
# check if image_id="aliyun_2_1903_x64_20G_alibase_20200529.vhd" and tuned service is off
|
|
|
|
if [ -f "/etc/image-id" ]; then
|
|
image_id=$(cat /etc/image-id |grep image_id |cut -d "=" -f2)
|
|
|
|
if [ "$image_id" = "\"aliyun_2_1903_x64_20G_alibase_20200526.vhd\"" ] || [ "$image_id" = "\"aliyun_2_1903_x64_20G_alibase_20200529.vhd\"" ]; then
|
|
systemctl stop tuned
|
|
systemctl disable tuned
|
|
echo "Succesfully stop and disable tuned"
|
|
fi
|
|
fi |