Compare commits
2 Commits
6c831f8567
...
095b2c5bb8
| Author | SHA1 | Date | |
|---|---|---|---|
| 095b2c5bb8 | |||
| e1d57b3664 |
@@ -37,7 +37,7 @@ printHelp() {
|
|||||||
--install, -i repo|local
|
--install, -i repo|local
|
||||||
repo: Install MC from repository, updates are handled by the system package manager
|
repo: Install MC from repository, updates are handled by the system package manager
|
||||||
local: Build and install MC package locally
|
local: Build and install MC package locally
|
||||||
--build[=suse|fedora|centos|rhel]
|
--build[=suse|fedora|centos]
|
||||||
Build RPM from source DEB but do not install
|
Build RPM from source DEB but do not install
|
||||||
Optionally, specify a target distro for cross-building (ex. --build=suse, note the '=')
|
Optionally, specify a target distro for cross-building (ex. --build=suse, note the '=')
|
||||||
--compat
|
--compat
|
||||||
@@ -56,7 +56,7 @@ printHelp() {
|
|||||||
Starts services at boot (system) or at user login (user) (Default: boot)
|
Starts services at boot (system) or at user login (user) (Default: boot)
|
||||||
--container, -c CONTAINER (TODO: Under construction)
|
--container, -c CONTAINER (TODO: Under construction)
|
||||||
See CONTAINERS section below for a list of possible services to install
|
See CONTAINERS section below for a list of possible services to install
|
||||||
--createrepo[=suse|fedora|centos|rhel]
|
--createrepo[=suse|fedora|centos]
|
||||||
Build rpm, copy to webroot, and run createrepo. Use in conjunction with --build=TARGET for crossbuilding repos
|
Build rpm, copy to webroot, and run createrepo. Use in conjunction with --build=TARGET for crossbuilding repos
|
||||||
Optionally, specify a target distro for non-native repo (ex. --createrepo=fedora, note the '=')
|
Optionally, specify a target distro for non-native repo (ex. --createrepo=fedora, note the '=')
|
||||||
--createrepo-webroot PATH
|
--createrepo-webroot PATH
|
||||||
@@ -1021,8 +1021,6 @@ service_jriver-xvnc() {
|
|||||||
start_cmd="/usr/bin/vncserver $NEXT_DISPLAY -geometry 1440x900 -alwaysshared -rfbauth $HOME/.vnc/jrmc_passwd -autokill -xstartup /usr/bin/mediacenter$MVERSION"
|
start_cmd="/usr/bin/vncserver $NEXT_DISPLAY -geometry 1440x900 -alwaysshared -rfbauth $HOME/.vnc/jrmc_passwd -autokill -xstartup /usr/bin/mediacenter$MVERSION"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
debug "start_cmd: $start_cmd"
|
|
||||||
|
|
||||||
sudo bash -c "cat <<- EOF > $SERVICE_FNAME
|
sudo bash -c "cat <<- EOF > $SERVICE_FNAME
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Remote desktop service (VNC)
|
Description=Remote desktop service (VNC)
|
||||||
@@ -1383,12 +1381,13 @@ disableCoW() {
|
|||||||
declare mc_system_path="/usr/lib/jriver"
|
declare mc_system_path="/usr/lib/jriver"
|
||||||
declare mc_user_path
|
declare mc_user_path
|
||||||
mc_user_path=$(getent passwd "$USER" | cut -d: -f6)
|
mc_user_path=$(getent passwd "$USER" | cut -d: -f6)
|
||||||
|
mc_user_path="$mc_user_path/.jriver"
|
||||||
|
|
||||||
for dir in "$mc_system_path" "$mc_user_path"; do
|
for dir in "$mc_system_path" "$mc_user_path"; do
|
||||||
if [[ $(stat -f -c %T "$dir") == "btrfs" ]] &&
|
if [[ $(stat -f -c %T "$dir") == "btrfs" ]] &&
|
||||||
! lsattr -d "$dir" | cut -f1 -d" " | grep -q C; then
|
! lsattr -d "$dir" | cut -f1 -d" " | grep -q C; then
|
||||||
echo "Disabling CoW for $dir"
|
echo "Disabling CoW for $dir"
|
||||||
sudo chattr -R +C "$dir"
|
sudo chattr +C "$dir"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user