summarylogtreecommitdiffstats
path: root/alist.install
diff options
context:
space:
mode:
authorsukanka2023-02-04 21:06:43 +0800
committersukanka2023-02-04 21:06:43 +0800
commit3ecf63ccbb461b05a52658835d433469ba032b92 (patch)
tree67b832d5b3a87eea84ef6753c04215da3c8ac770 /alist.install
parenta0849a107a8590a93254f265925963092eb885b3 (diff)
downloadaur-3ecf63ccbb461b05a52658835d433469ba032b92.tar.gz
set user for alist
Diffstat (limited to 'alist.install')
-rw-r--r--alist.install15
1 files changed, 11 insertions, 4 deletions
diff --git a/alist.install b/alist.install
index a3b24d23d3cb..8e9f0d9aebc8 100644
--- a/alist.install
+++ b/alist.install
@@ -1,5 +1,12 @@
-post_install(){
- install -d /var/log/alist/
- install -d /var/lib/alist/
- install -d /var/cache/alist/temp
+post_upgrade(){
+ echo "from alist 3.9.2-3, the alist user is used to run this service"
+ echo "if you are upgrading from a previous version"
+ echo "you have to run the following commands in green only once"
+
+ echo -e "\e[32m sudo chown -R alist:alist /var/lib/alist \e[0m"
+ echo -e "\e[32m sudo chown -R alist:alist /var/log/alist \e[0m"
+ echo -e "\e[32m sudo chown -R alist:alist /etc/alist \e[0m"
+ echo -e "\e[32m sudo chown -R alist:alist /var/cache/alist \e[0m"
+
+ echo "and chown any other local files that are served by alist"
}