[問題] 製作Cygwin的安裝包
※ [本文轉錄自 Linux 看板]
作者: Psycap (siraPcitsatnaF) 看板: Linux
標題: [問題] 製作Cygwin的安裝包
時間: Mon Apr 27 17:58:25 2009
我想製作Cygwin的安裝包
然後知道安裝後可以透過postinstall script去完成設定的工作
但是經過我測試的結果
如果把以下兩行放到安裝包的 /etc/postinstall/xxx.sh 裡面
echo "1234" > /tmp/123.log
chmod 777 /tmp/123.log
安裝完成後 /tmp/123.log 的確存在
但是他的 file system modes 並不是 777,
% ls -l /tmp/123.log
-rwxr-xr--+ 1 Administrator Users 5 Apr 27 17:25 123.log
但是如果安裝完成後執行安裝目錄下的Cygwin.bat然後執行
% ls -l /tmp/123.log
file system modes 就會是 777 了
我是在 Windows XP sp3 下面測試安裝包的
並且在官方FAQ也看到相關的提問和解答, 但是並還沒解決問題
(http://cygwin.com/faq/ 的 4.15.)
因為基本上我的 chmod 在安裝完成之後是可以正常使用的,
只是在 postinstall 階段無法順利改變 file system modes
因為設定的關係, 我需要在 postinstall 的時候改變 file system modes
希望各位大師不吝指導小弟
感謝
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.112.30.46
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.112.30.46
→
04/28 12:27, , 1F
04/28 12:27, 1F
LinuxDev 近期熱門文章
PTT數位生活區 即時熱門文章
53
115