#3 Add ability to install to home directory for non-root users

Avoinna
7 vuotta sitten avasi JasKinasis · 0 kommenttia

It might be nice for non-root users to be able to install note locally in their home directory.

The scripts (note and notesettings) could go into ~/bin/ and the man pages into ~/man/

The installation script (or makefile) would have to detect whether we are running as root, or as a standard user and then either install to /usr/local/, or to /home/user/

Note to self:

if [ $EUID ]; then 
    echo "NOT root!"
else
    echo "GOT root!"
fi
It might be nice for non-root users to be able to install note locally in their home directory. The scripts (note and notesettings) could go into ~/bin/ and the man pages into ~/man/ The installation script (or makefile) would have to detect whether we are running as root, or as a standard user and then either install to /usr/local/, or to /home/user/ Note to self: ``` if [ $EUID ]; then echo "NOT root!" else echo "GOT root!" fi ```
Kirjaudu sisään osallistuaksesi tähän keskusteluun.
Ei tunnistetta
Bug
Ei merkkipaalua
Ei osoitettua
1 osallistujaa
Ladataan...
Peruuta
Tallenna
Sisältöä ei vielä ole.