less verbose
This commit is contained in:
parent
64fc41377f
commit
669587a07e
|
@ -95,14 +95,15 @@ popd
|
||||||
# System Service
|
# System Service
|
||||||
#
|
#
|
||||||
source ./installer/my-root.sh
|
source ./installer/my-root.sh
|
||||||
echo "Pre-installation to $my_app_dir complete, now installing to $my_root/"
|
echo "Pre-installation to $my_app_dir complete, now installing to $my_root/ ..."
|
||||||
|
ls $my_app_dir
|
||||||
|
|
||||||
source ./installer/my-user-my-group.sh
|
source ./installer/my-user-my-group.sh
|
||||||
echo "User $my_user Group $my_group"
|
echo "User $my_user Group $my_group"
|
||||||
|
|
||||||
$sudo_cmd chown -R $my_user:$my_group $my_app_dir
|
$sudo_cmd chown -R $my_user:$my_group $my_app_dir
|
||||||
rsync -av $my_app_dir/ $my_root/
|
rsync -a $my_app_dir/ $my_root/
|
||||||
rsync -av --ignore-existing $my_app_dist/etc/goldilocks/goldilocks.yml $my_root/etc/goldilocks/goldilocks.yml
|
rsync -a --ignore-existing $my_app_dist/etc/goldilocks/goldilocks.yml $my_root/etc/goldilocks/goldilocks.yml
|
||||||
source ./installer/install-system-service.sh
|
source ./installer/install-system-service.sh
|
||||||
|
|
||||||
# Change to admin perms
|
# Change to admin perms
|
||||||
|
|
|
@ -4,7 +4,7 @@ safe_copy_config()
|
||||||
dst=$2
|
dst=$2
|
||||||
$sudo_cmd mkdir -p $(dirname "$dst")
|
$sudo_cmd mkdir -p $(dirname "$dst")
|
||||||
if [ -f "$dst" ]; then
|
if [ -f "$dst" ]; then
|
||||||
$sudo_cmd rsync -av "$src" "$dst.latest"
|
$sudo_cmd rsync -a "$src" "$dst.latest"
|
||||||
# TODO edit config file with $my_user and $my_group
|
# TODO edit config file with $my_user and $my_group
|
||||||
if [ "$(cat $dst)" == "$(cat $dst.latest)" ]; then
|
if [ "$(cat $dst)" == "$(cat $dst.latest)" ]; then
|
||||||
$sudo_cmd rm $dst.latest
|
$sudo_cmd rm $dst.latest
|
||||||
|
@ -14,7 +14,7 @@ safe_copy_config()
|
||||||
$sudo_cmd chown -R root:root "$dst.latest"
|
$sudo_cmd chown -R root:root "$dst.latest"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
$sudo_cmd rsync -av --ignore-existing "$src" "$dst"
|
$sudo_cmd rsync -a --ignore-existing "$src" "$dst"
|
||||||
fi
|
fi
|
||||||
$sudo_cmd chown -R root:root "$dst"
|
$sudo_cmd chown -R root:root "$dst"
|
||||||
$sudo_cmd chmod 644 "$dst"
|
$sudo_cmd chmod 644 "$dst"
|
||||||
|
|
Loading…
Reference in New Issue