Skip to content
This repository has been archived by the owner on Sep 8, 2024. It is now read-only.

Commit

Permalink
scripts: Support busybox chown
Browse files Browse the repository at this point in the history
Those extra options are not enabled in busybox
(at least not the configured version in poky yocto distribution)

This will also help to support systems without coreutils,

Relate-to: #2686
Signed-off-by: Philippe Coval <philippe.coval@astrolabe.coop>
  • Loading branch information
rzr committed Aug 5, 2021
1 parent 170ebc4 commit 4bde943
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions scripts/mycroft-use.sh
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,10 @@ function restore_init_scripts() {
sudo sh -c 'cat /etc/init.d/mycroft-admin-service.original > /etc/init.d/mycroft-admin-service'
sudo rm /etc/init.d/*.original
chown mycroft:mycroft /home/mycroft/.mycroft/identity/identity2.json
sudo chown -Rvf mycroft:mycroft /var/log/mycroft*
sudo chown -Rvf mycroft:mycroft /tmp/mycroft
sudo chown -Rvf mycroft:mycroft /var/run/mycroft*
sudo chown -Rvf mycroft:mycroft /opt/mycroft
sudo chown -R mycroft:mycroft /var/log/mycroft*
sudo chown -R mycroft:mycroft /tmp/mycroft
sudo chown -R mycroft:mycroft /var/run/mycroft*
sudo chown -R mycroft:mycroft /opt/mycroft
sudo chown mycroft:mycroft /var/tmp/mycroft_web_cache.json

# reload daemon scripts
Expand Down Expand Up @@ -144,10 +144,10 @@ function github_init_scripts() {
sudo ln -s /home/mycroft/.mycroft/identity ${HOME}/.mycroft/
fi

sudo chown -Rvf ${user}:${user} /var/log/mycroft*
sudo chown -Rvf ${user}:${user} /var/run/mycroft*
sudo chown -Rvf ${user}:${user} /tmp/mycroft
sudo chown -Rvf ${user}:${user} /var/tmp/mycroft_web_cache.json
sudo chown -R ${user}:${user} /var/log/mycroft*
sudo chown -R ${user}:${user} /var/run/mycroft*
sudo chown -R ${user}:${user} /tmp/mycroft
sudo chown -R ${user}:${user} /var/tmp/mycroft_web_cache.json

# reload daemon scripts
sudo systemctl daemon-reload
Expand Down

0 comments on commit 4bde943

Please sign in to comment.