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

scripts: Support busybox chown #2966

Merged
merged 1 commit into from
Aug 18, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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