1
0
Fork 0
mirror of https://github.com/SinTan1729/random.git synced 2024-12-26 21:18:36 -06:00

change lockfile names

This commit is contained in:
Sayantan Santra 2022-08-01 21:47:07 -05:00
parent 19503ef85e
commit 18a1f0ab1c
2 changed files with 2 additions and 2 deletions

View file

@ -20,7 +20,7 @@
# (sometimes I forget to turn on the monitor when I start my PC, so this is better than having a crontab) # (sometimes I forget to turn on the monitor when I start my PC, so this is better than having a crontab)
# avoid running two concurrent processes # avoid running two concurrent processes
[ "${BRTNESSLOCKER}" != "running" ] && exec env BRTNESSLOCKER="running" flock -en "/tmp/brightness-by-daylight" "$0" "$@" || : [ "${BRTNESSLOCKER}" != "running" ] && exec env BRTNESSLOCKER="running" flock -en "/tmp/brightness-by-daylight.lock" "$0" "$@" || :
# set location of the config file # set location of the config file
[ -z "$XDG_CONFIG_HOME" ] && confdir="/home/sintan/.config" || confdir="$XDG_CONFIG_HOME" [ -z "$XDG_CONFIG_HOME" ] && confdir="/home/sintan/.config" || confdir="$XDG_CONFIG_HOME"

View file

@ -3,7 +3,7 @@
# This script backs up some important stuff # This script backs up some important stuff
# Run only one instance of this script at one time # Run only one instance of this script at one time
[ "${BKLOCKER}" != "running" ] && exec env BKLOCKER="running" flock -en "/tmp/impfilesbk" "$0" "$@" || : [ "${BKLOCKER}" != "running" ] && exec env BKLOCKER="running" flock -en "/tmp/impfilesbk.lock" "$0" "$@" || :
# Setup location for home and backup directory # Setup location for home and backup directory
HMDIR="/home/sintan" HMDIR="/home/sintan"