view backup/start.sh @ 2135:e94d10d071e4 default tip

change sed command to not conflict with hghost
author Violet7
date Fri, 16 Jan 2026 18:15:14 -0800
parents 14a690642b88
children
line wrap: on
line source

#!/bin/bash -e

ROOTPWD=$(pwd);
logsdir=${ROOTPWD}"/logs";
servelog=${logsdir}"/server.log";

if [ "$1" == "launchd" ]; then
    ${ROOTPWD}/luan.sh backup_server.luan $* &>${servelog}
else
    ${ROOTPWD}/luan.sh backup_server.luan $* &>${servelog}&
fi;