FIX: fix for parameter app-setting
This commit is contained in:
parent
ae9c494375
commit
bb5532a597
|
@ -1,12 +1,11 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
if [ -z $1 ] || [ -z $2 ] || [ -z $3 ] ; then
|
if [ -z $1 ] || [ -z $2 ] ; then
|
||||||
echo "Please fill in app's name, exe's path, exe's file."
|
echo "Please fill in app's name, file."
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
mv sdt-cloud-app.service $1.service
|
mv sdt-cloud-app.service $1.service
|
||||||
sudo sed -i "s/sdt-cloud-app/$1/g" ./install.sh
|
sed -i "s/sdt-cloud-app/'$1'/g" ./$1.service
|
||||||
sudo sed -i "s/exePath/$2/g" ./install.sh
|
sed -i "s/exeFile/$2/g" ./$1.service
|
||||||
sudo sed -i "s/exeFile/$3/g" ./install.sh
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue