Debian Codegraph @

snap/local/run-ipp-usb

raw
1 #!/bin/sh
2
3 #set -e -x
4
5 # Create needed directories
6 # Ignore errors
7 mkdir -p $SNAP_COMMON/etc || :
8 mkdir -p $SNAP_COMMON/var/log || :
9 mkdir -p $SNAP_COMMON/var/lock || :
10 mkdir -p $SNAP_COMMON/var/dev || :
11 mkdir -p $SNAP_COMMON/quirks || :
12
13 # Put config file in place
14 #
15 # Do not overwrite files and ignore errors, to not reset user configuration
16 # when running as root and to not have ugly error messages when running as
17 # non-root.
18 if [ ! -f $SNAP_COMMON/etc/ipp-usb.conf ]; then
19 cp $SNAP/etc/ipp-usb.conf $SNAP_COMMON/etc/ >/dev/null 2>&1 || :
20 fi
21
22 # Run ipp-usb with the command line arguments with which we were called
23 exec $SNAP/sbin/ipp-usb "$@"