Fix stop script, add default var expansion for root-folder
This commit is contained in:
parent
34c9ced75a
commit
6b1522babb
2 changed files with 3 additions and 2 deletions
|
@ -65,7 +65,7 @@ const getMemoryInfo = async (req: Request, res: Response<MemoryData>) => {
|
|||
res.status(200).json(result);
|
||||
};
|
||||
|
||||
const getVersion = async (_: Request, res: Response<{ current: string; latest: string }>) => {
|
||||
const getVersion = async (req: Request, res: Response<{ current: string; latest: string }>) => {
|
||||
let version = TipiCache.get<string>('latestVersion');
|
||||
|
||||
if (!version) {
|
||||
|
|
|
@ -60,7 +60,8 @@ if [ -z ${2+x} ]; then
|
|||
exit 1
|
||||
else
|
||||
app="$2"
|
||||
root_folder_host="$3"
|
||||
root_folder_host="${3:-$ROOT_FOLDER}"
|
||||
|
||||
app_dir="${ROOT_FOLDER}/apps/${app}"
|
||||
app_data_dir="${ROOT_FOLDER}/app-data/${app}"
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue