2023-10-23 01:51:21 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2023-10-23 05:59:55 +00:00
|
|
|
if [ -z $1 ] || [ -z $2 ] ; then
|
|
|
|
echo "Please fill in app's name, file."
|
2023-10-23 01:51:21 +00:00
|
|
|
exit
|
|
|
|
fi
|
|
|
|
|
|
|
|
mv sdt-cloud-app.service $1.service
|
2023-10-23 06:07:47 +00:00
|
|
|
sed -i "s/sdt-cloud-app/$1/g" ./install.sh
|
|
|
|
sed -i "s/sdt-cloud-app/$1/g" ./$1.service
|
2023-10-23 05:59:55 +00:00
|
|
|
sed -i "s/exeFile/$2/g" ./$1.service
|
2023-10-23 01:51:21 +00:00
|
|
|
|