fix path to dir
This commit is contained in:
parent
8a157ec7a7
commit
7343e89a17
6
PKGBUILD
6
PKGBUILD
@ -2,9 +2,9 @@ pkgname=tarch-misc
|
||||
pkgver=1.0
|
||||
pkgrel=1
|
||||
pkgdesc="Home config file for Tarch OS"
|
||||
arch=('any')
|
||||
url="https://gitcast.ru/tarch_os/tarch-misc.git"
|
||||
license=('GPL3')
|
||||
arch=("any")
|
||||
url="https://gitcast.ru/tarch_os/tarch-bin"
|
||||
license=("GPL3")
|
||||
install=${pkgname}.install
|
||||
|
||||
prepare() {
|
||||
|
14
makepkg.sh
14
makepkg.sh
@ -1,6 +1,18 @@
|
||||
#!/bin/bash
|
||||
|
||||
source "$HOME/bin/scripts/system/style"
|
||||
RESET_COLOR="\033[0m"
|
||||
BOLD="\033[1m"
|
||||
ITALIC="\033[3m"
|
||||
|
||||
BLACK="\033[30m"
|
||||
RED="\033[31m"
|
||||
GREEN="\033[32m"
|
||||
YELLOW="\033[33m"
|
||||
BLUE="\033[34m"
|
||||
MAGENTA="\033[35m"
|
||||
CYAN="\033[36m"
|
||||
WHITE="\033[37m"
|
||||
PURPLE="\033[35m"
|
||||
|
||||
BUILDING_DIR="build"
|
||||
|
||||
|
@ -71,6 +71,9 @@ alias nv="nvim"
|
||||
|
||||
alias ls="lst"
|
||||
|
||||
# run sonic-annotator
|
||||
alias sonic-anotator="/home/$USER/vamp/sonic-annotator"
|
||||
|
||||
# # # # # # #
|
||||
# SETTINGS #
|
||||
# # # # # #
|
||||
|
@ -1,13 +1,25 @@
|
||||
#!/bin/bash
|
||||
|
||||
source "$HOME/bin/scripts/system/style"
|
||||
RESET_COLOR="\033[0m"
|
||||
BOLD="\033[1m"
|
||||
ITALIC="\033[3m"
|
||||
|
||||
BLACK="\033[30m"
|
||||
RED="\033[31m"
|
||||
GREEN="\033[32m"
|
||||
YELLOW="\033[33m"
|
||||
BLUE="\033[34m"
|
||||
MAGENTA="\033[35m"
|
||||
CYAN="\033[36m"
|
||||
WHITE="\033[37m"
|
||||
PURPLE="\033[35m"
|
||||
|
||||
USER=`echo ${SUDO_USER:-$(whoami)}`
|
||||
GID=`echo ${SUDO_GID}`
|
||||
GROUB=`cat /etc/group | grep ${GID} | cut -d: -f1 | head -1`
|
||||
HOME_DIR="home/${USER}"
|
||||
BACKUP_DIR="/home/${HOME_DIR}/.tarch-backups"
|
||||
CONFIG_DIR_SKEL="/etc/skel"
|
||||
HOME_DIR="/home/${USER}"
|
||||
BACKUP_DIR="${HOME_DIR}/.tarch-backups"
|
||||
SKEL_DIR="/etc/skel"
|
||||
PKG_NAME="tarch-misc"
|
||||
|
||||
BACKUP (){
|
||||
@ -18,7 +30,6 @@ BACKUP (){
|
||||
mkdir -p ${BACKUP_DIR}/${FILES_NAME}-${BACKUP_NAME}-${BACKUP_RANDOM}
|
||||
|
||||
echo -e ${CYAN}" ==> перемещаем текущий конфиг в backup дирректорию." ${RESET_COLOR}
|
||||
mv ${HOME_DIR}/.mplayer ${BACKUP_DIR}/${FILES_NAME}-${BACKUP_NAME}-${BACKUP_RANDOM}
|
||||
mv ${HOME_DIR}/.Xresources.d ${BACKUP_DIR}/${FILES_NAME}-${BACKUP_NAME}-${BACKUP_RANDOM}
|
||||
mv ${HOME_DIR}/.dmrc ${BACKUP_DIR}/${FILES_NAME}-${BACKUP_NAME}-${BACKUP_RANDOM}
|
||||
mv ${HOME_DIR}/.face ${BACKUP_DIR}/${FILES_NAME}-${BACKUP_NAME}-${BACKUP_RANDOM}
|
||||
@ -38,18 +49,16 @@ INSTALL (){
|
||||
|
||||
mkdir -p ${HOME_DIR}
|
||||
|
||||
cp -rf ${HOME_DIR_SKEL}/.mplayer ${HOME_DIR}
|
||||
cp -rf ${HOME_DIR_SKEL}/.Xresources.d ${HOME_DIR}
|
||||
cp ${HOME_DIR_SKEL}/.dmrc ${HOME_DIR}
|
||||
cp ${HOME_DIR_SKEL}/.face ${HOME_DIR}
|
||||
cp ${HOME_DIR_SKEL}/.gtkrc-2.0 ${HOME_DIR}
|
||||
cp ${HOME_DIR_SKEL}/.hushlogin ${HOME_DIR}
|
||||
cp ${HOME_DIR_SKEL}/.p10k.zsh ${HOME_DIR}
|
||||
cp ${HOME_DIR_SKEL}/.Xresources ${HOME_DIR}
|
||||
cp ${HOME_DIR_SKEL}/.zshrc ${HOME_DIR}
|
||||
cp -rf ${SKEL_DIR}/.Xresources.d ${HOME_DIR}
|
||||
cp ${SKEL_DIR}/.dmrc ${HOME_DIR}
|
||||
cp ${SKEL_DIR}/.face ${HOME_DIR}
|
||||
cp ${SKEL_DIR}/.gtkrc-2.0 ${HOME_DIR}
|
||||
cp ${SKEL_DIR}/.hushlogin ${HOME_DIR}
|
||||
cp ${SKEL_DIR}/.p10k.zsh ${HOME_DIR}
|
||||
cp ${SKEL_DIR}/.Xresources ${HOME_DIR}
|
||||
cp ${SKEL_DIR}/.zshrc ${HOME_DIR}
|
||||
|
||||
echo -e ${CYAN}" ==> предоставление разрешений для пользователя: ${PURPLE}${USER}" ${RESET_COLOR}
|
||||
chown -R ${USER}:${GROUB} ${HOME_DIR}/.mplayer
|
||||
chown -R ${USER}:${GROUB} ${HOME_DIR}/.Xresources.d
|
||||
chown -R ${USER}:${GROUB} ${HOME_DIR}/.dmrc
|
||||
chown -R ${USER}:${GROUB} ${HOME_DIR}/.face
|
||||
@ -59,7 +68,7 @@ INSTALL (){
|
||||
chown -R ${USER}:${GROUB} ${HOME_DIR}/.Xresources
|
||||
chown -R ${USER}:${GROUB} ${HOME_DIR}/.zshrc
|
||||
|
||||
if [[ -d "${HOME_DIR}/.mplayer" && -d "${HOME_DIR}/.Xresources.d" && -f "${HOME_DIR}/.dmrc" && -f "${HOME_DIR}/.face" && -f "${HOME_DIR}/.fehbg" && -f "${HOME_DIR}/.gtkrc-2.0" && -f "${HOME_DIR}/.hushlogin" && -f "${HOME_DIR}/.p10k.zsh" && -f "${HOME_DIR}/.Xresources" && -f "${HOME_DIR}/.xsettingsd" && -f "${HOME_DIR}/.zshrc" ]]; then
|
||||
if [[ -d "${HOME_DIR}/.Xresources.d" && -f "${HOME_DIR}/.dmrc" && -f "${HOME_DIR}/.face" && -f "${HOME_DIR}/.fehbg" && -f "${HOME_DIR}/.gtkrc-2.0" && -f "${HOME_DIR}/.hushlogin" && -f "${HOME_DIR}/.p10k.zsh" && -f "${HOME_DIR}/.Xresources" && -f "${HOME_DIR}/.xsettingsd" && -f "${HOME_DIR}/.zshrc" ]]; then
|
||||
echo -e ${BOLD}${GREEN}"[✔] конфигурационные файлы установлены..." ${RESET_COLOR}
|
||||
echo -e "\n"
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user