Universal Linux Script
ULS Pronounces "U-Less".
A shell script with built-in variables which can simply script writting. For example,
pkg.install nginx equals
apt-get -y install nginx on Debian &
yum -y install nginx on CentOS.
README.md in other languages:
ULS's language is same as Linux shell script's language.
In another word, ULS is a shell script with built-in variables which can be replaced to specific commands or strings when executed on your device.
Here's a full example:
pkg.update pkg.install nginx echo net.ip if [ dev.virt == "kvm" ]; then echo "KVM" elif [ dev.virt == "openvz" ]; then echo "OpenVZ" fi
When test.uls executed on a Debian device with "188.8.131.52" as public IPv4 address & KVM as virtualization technology, it will be converted to:
apt-get update apt-get -y install nginx echo "184.108.40.206" if [ "kvm" == "kvm" ]; then echo "KVM" elif [ "kvm" == "openvz" ]; then echo "OpenVZ" fi