Browse Source
Merge pull request #107 from mirzak/script-version
install /etc/mender/script/version file
1.2.x
Mirza Krak
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
5 additions and
0 deletions
-
convert-stage-4.sh
|
@ -56,6 +56,8 @@ server_cert= |
|
|
tenant_token= |
|
|
tenant_token= |
|
|
# Mender tenant token. |
|
|
# Mender tenant token. |
|
|
mender_tenant_token="dummy" |
|
|
mender_tenant_token="dummy" |
|
|
|
|
|
# Mender state-script format version |
|
|
|
|
|
mender_state_scripts_version="3" |
|
|
|
|
|
|
|
|
declare -a mender_disk_mappings |
|
|
declare -a mender_disk_mappings |
|
|
|
|
|
|
|
@ -130,6 +132,9 @@ install_files() { |
|
|
sudo install -d -m 755 ${data_dir}/${dataconfdir} |
|
|
sudo install -d -m 755 ${data_dir}/${dataconfdir} |
|
|
sudo install -d -m 755 ${data_dir}/${databootdir} |
|
|
sudo install -d -m 755 ${data_dir}/${databootdir} |
|
|
|
|
|
|
|
|
|
|
|
sudo install -d -m 755 ${primary_dir}/${sysconfdir}/scripts/ |
|
|
|
|
|
echo -n "${mender_state_scripts_version}" | sudo tee ${primary_dir}/${sysconfdir}/scripts/version |
|
|
|
|
|
|
|
|
sudo install -m 0444 ${mender_dir}/device_type ${data_dir}/${dataconfdir} |
|
|
sudo install -m 0444 ${mender_dir}/device_type ${data_dir}/${dataconfdir} |
|
|
sudo install -m 0644 ${mender_dir}/fw_env.config ${data_dir}/${databootdir} |
|
|
sudo install -m 0644 ${mender_dir}/fw_env.config ${data_dir}/${databootdir} |
|
|
|
|
|
|
|
|