mirror of https://github.com/requarks/wiki
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
599 B
25 lines
599 B
#!/bin/sh
|
|
|
|
################################
|
|
## PART: Write the application tag
|
|
##
|
|
## vi: syntax=sh expandtab ts=4
|
|
|
|
build_date=$(date +%Y-%m-%d)
|
|
distro="$(lsb_release -s -i)"
|
|
distro_release="$(lsb_release -s -r)"
|
|
distro_codename="$(lsb_release -s -c)"
|
|
distro_arch="$(uname -m)"
|
|
|
|
mkdir -p /var/lib/digitalocean
|
|
|
|
cat >> /var/lib/digitalocean/application.info <<EOM
|
|
application_name="${application_name}"
|
|
build_date="${build_date}"
|
|
distro="${distro}"
|
|
distro_release="${distro_release}"
|
|
distro_codename="${distro_codename}"
|
|
distro_arch="${distro_arch}"
|
|
application_version="${application_version}"
|
|
EOM
|